ESP_IOT v2.5
IOT ESP Coding
M5Atom_HDriverModuleClass.cpp
Go to the documentation of this file.
1//
2// M5Atom_HDriverModuleClass.cpp
3//
4//
5// Created by Scott Moody on 5/6/25.
6//
7
9
10//! Currently the HDriver only processes the BUZZER .. so the setup works..
12{
13 SerialDebug.printf("M5Atom_HDriverModuleClass init %s\n", config);
14
15}
16
17//!6.6.24 D-Day 81 years
18//!return true or false if this should be a PTFeeder or PTClicker
19//!default 'false' to PTClicker. The Bluetooth will use this
21{
22 return true;
23}
24
25//! Data members of class
26//! Generic config info .. specific the the sensor type
27
28//!starts the PTStepper
30{
31}
32
33//!setup the PTStepper
35{
36 SerialDebug.printf("M5Atom_HDriverModuleClass::setup_M5AtomClassType\n");
37
38}
39
40//! stops motor
42{
43
44}
45
46//!setup the PTStepper
48{
49}
50
51//! ATOM specific
52
53//! these are from the ATOM
54
55//! 8.28.23 Adding a way for others to get informed on messages that arrive
56//! for the set,val
57//! 12.27.23 support setName == "HDriver"
58//! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
59//! It's up to the receiver to decide if it has to be specified
60void M5Atom_HDriverModuleClass::messageSetVal_M5AtomClassType(char *setName, char* valValue, boolean deviceNameSpecified)
61{
62
63}
64
65//! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
66//! for the send -
67void M5Atom_HDriverModuleClass::messageSend_M5AtomClassType(char *sendValue, boolean deviceNameSpecified)
68{
69 SerialDebug.printf("M5Atom_HDriverModuleClass::messageSend_M5AtomClassType(%s)\n", sendValue);
70
71}
72
73//! BUTTON PROCESSING abstraction
74//!short press on buttonA (top button)
76{
77
78}
79//!long press on buttonA (top button)
81{
82
83}
84
85//!returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
86//!starts with "&"*
88{
89 //! 8.4.25 add k=HD (HDriver)
90 return (char*)"&k=HD";
91}
92
93//!returns a string in in JSON so: status&battery=84'&buzzon='off' } .. etc
94//! (SINGLE QUOTES)
96{
97 return (char*)"'kind':'HD'";
98}
void loop_M5AtomClassType()
setup the PTStepper
void messageSetVal_M5AtomClassType(char *setName, char *valValue, boolean deviceNameSpecified)
ATOM specific.
M5Atom_HDriverModuleClass(char *config)
constructor
void buttonA_LongPress_M5AtomClassType()
long press on buttonA (top button)
void start_M5AtomClassType()
starts the PTStepper
void messageSend_M5AtomClassType(char *sendValue, boolean deviceNameSpecified)
void setup_M5AtomClassType()
setup the PTStepper
An mostly virtual class.