12#include "../ATOM_LED_Module/M5Display.h"
18#ifdef KEY_UNIT_SENSOR_CLASS
20#include "../SensorClass/SensorClassType.h"
21#include "../SensorClass/KeyUnitSensorClass.h"
37 SerialDebug.printf(
"M5AtomCallback_M5AtomNoModule.sensorCallbackSignature(%s,%d)\n", parameter, flag);
53 SerialDebug.printf(
"M5Atom_NoModuleClass init %s\n", config);
70 SerialDebug.println(
"M5Atom_NoModuleClass::setup_M5AtomClassType");
75 SerialDebug.println(
"M5Atom_NoModuleClass.M5.begin");
87#ifdef KEY_UNIT_SENSOR_CLASS
113#ifdef KEY_UNIT_SENSOR_CLASS
156 SerialDebug.println(
"M5Atom::buttonA_ShortPress_M5Atom_NoModuleClass");
158 SerialDebug.printf(
"Feed BLE\n");
186 SerialDebug.println(
"M5Atom_HDriverModuleClass::buttonA_LongPress_M5Atom_NoModuleClass");
197 SerialDebug.println(
"*** NoModuleClass sending Buzzer = on 'B'");
202 SerialDebug.println(
"*** NoModuleClass sending Buzzer = off 'b'");
212 SerialDebug.printf(
"connectedBLEDeviceName = %s\n", connectedBLEDeviceName);
213 if (connectedBLEDeviceName)
223#ifdef IN_BASE_TYPE_NOW
226 SerialDebug.printf(
"CLEAN CREDENTIALS and reboot to AP mode\n");
240 return (
char*)
"&k=NO";
247 return (
char*)
"'kind':'NO'";
256 SerialDebug.printf(
"M5Atom_NoModuleClass isPTFeeder = false\n");
void sendCommandBLEClient_13orLess(String cmdString)
send a string of 13 characters or less
void M5AtomCallback_M5AtomNoModule(char *parameter, boolean flag)
a pointer to a callback function that takes (char*) and returns void
KeyUnitSensorClass * _KeyUnitSensorClass_M5AtomNoModule
keyUnitSensorClass object for the BUTTON
TimerDelayClass * _timerDelayClass_M5NoModuleClass
create instance of the timer class
float _delaySeconds_M5NoModuleClass_setting
default .. this could be set via Preferences (TODO)
void setup_M5Display()
the setup() no loop()
void fillpix(CRGB Color)
color the button light
void main_dispatchAsyncCommand(int asyncCallCommand)
checks if any async commands are in 'dispatch' mode, and if so, invokes them, and sets their flag to ...
char * connectedBLEDeviceName_mainModule()
returns the connected BLE Device name (the :NAME of advertisment, Address: 01:39:3f:33 part of name,...
#define ASYNC_SEND_MQTT_FEED_MESSAGE
sends a message (like FEED) on the users topic
#define ASYNC_CALL_CLEAN_CREDENTIALS
cleans out the credentials and restarts in AP (Access Point) mode.
boolean getPreferenceBoolean_mainModule(int preferenceID)
called to set a preference (which will be an identifier and a string, which can be converted to a num...
void togglePreferenceBoolean_mainModule(int preferenceID)
toggles a preference boolean
#define PREFERENCE_STEPPER_BUZZER_VALUE
stepper preferences
void setup()
Pure Virtual Function.
void loop()
Pure Virtual Function.
char * currentStatusJSON_M5AtomClassType()
void setup_M5AtomClassType()
setup the PTStepper
M5Atom_NoModuleClass(char *config)
constructor
boolean isPTFeeder_M5AtomClassType()
void messageSend_M5AtomClassType(char *sendValue, boolean deviceNameSpecified)
void buttonA_ShortPress_M5AtomClassType()
char * currentStatusURL_M5AtomClassType()
void buttonA_LongPress_M5AtomClassType()
long press on buttonA (top button)
void messageSetVal_M5AtomClassType(char *setName, char *valValue, boolean deviceNameSpecified)
ATOM specific.
void stop_M5AtomClassType()
stops motor
void loop_M5AtomClassType()
setup the PTStepper
void start_M5AtomClassType()
starts the PTStepper
void registerCallback(sensorCallbackSignature *callback)
void startDelay(float delayAmountSeconds)
starts delay calculation
boolean delayFinished()
whether the currently delay is finished, false if not running at all
void stopDelay()
stops delay