ESP_IOT v2.5
IOT ESP Coding
StepperModule.h
Go to the documentation of this file.
1#ifndef StepperModule_h
2#define StepperModule_h
3
4#include "../../Defines.h"
5
6//#include "../UIModule/UI.h"
7
8//!the main loop for the StepperModule (this is the FeederStateMachine)
10
11//!called on setup()
13
14//!the Blink the LED - and it will use the latest BUZZER status (so MQTT could set buzzer on.. then call this)
15//void stepperModule_BlinkLED();
16
17/**
18SerialDebug.println("Valid Commands: ");
19SerialDebug.println(" H == help, this message");
20SerialDebug.println(" 0x0, s, c == Single Feed ");
21SerialDebug.println(" a == AutoFeed ");
22SerialDebug.println(" u == UNO ");
23SerialDebug.println(" m == MINI ");
24SerialDebug.println(" L == Tumbler ");
25SerialDebug.println(" B == Buzzer On");
26SerialDebug.println(" b == Buzzer Off");
27SerialDebug.println(" G == Gateway On");
28SerialDebug.println(" g == gateway Off");
29SerialDebug.println(" R == clean credentials");
30SerialDebug.println(" O == OTA update");
31SerialDebug.println(" X == clean EPROM");
32 SerialDebug.println(" T == tilt on");
33 SerialDebug.println(" t == tilt off");
34
35
36*/
37//!processes a single character command from BLE (or from MQTT converted to a single character)
39
40#ifdef ESP_M5
41#define LED 2
42
43#else
44
45/*volume info, B = buzzOn, b = buzzOff*/
46//#define BUZZON 1
47//#define BUZZOFF 0
48
49/*feederType*/
50#define UNO 1
51#define MINI 2
52#define TUMBLER 3
53/*ESP32 GPIO*/
54#define LED 2
55//#define BUZZ 26
56
57
58//! retreives the feeder type, UNO or MINI
59extern int getFeederType();
60
61//! retrieves the buzzer status
63
64#endif //ESP_M5
65
66#endif // Dispense_h
67
void loop_StepperModule()
the main loop for the StepperModule (this is the FeederStateMachine)
void setup_StepperModule()
called on setup()
int getFeederType()
retreives the feeder type, UNO or MINI
void stepperModule_ProcessClientCmdFinal(char cmd)
the Blink the LED - and it will use the latest BUZZER status (so MQTT could set buzzer on....
boolean getBuzzStatus_StepperModule()
retrieves the buzzer status