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
41
42/*volume info, B = buzzOn, b = buzzOff*/
43//#define BUZZON 1
44//#define BUZZOFF 0
45
46/*feederType*/
47#define UNO 1
48#define MINI 2
49#define TUMBLER 3
50/*ESP32 GPIO*/
51#define LED 2
52//#define BUZZ 26
53
54
55//! retreives the feeder type, UNO or MINI
56extern int getFeederType();
57
58//! retrieves the buzzer status
60
61//! 4.1.25 April Fools day. Mt Peak hike (162 bmp strange spike)
62//! get the identity of the SenasorPlug
63//! nil if non
65
66#endif // Dispense_h
67
void loop_StepperModule()
the main loop for the StepperModule (this is the FeederStateMachine)
char * stepperIdentity_StepperModule()
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