Add new definition for I2C commands
This commit is contained in:
@@ -14,7 +14,13 @@
|
|||||||
#define MQTT_USER "your_username"
|
#define MQTT_USER "your_username"
|
||||||
#define MQTT_PASS "your_password"
|
#define MQTT_PASS "your_password"
|
||||||
|
|
||||||
// Hardware
|
#define CMD_GET_MOISTURE 0x01
|
||||||
|
#define CMD_GET_SENSOR_READS 0x02
|
||||||
|
#define CMD_GET_MOISTURE_MIN 0x03
|
||||||
|
#define CMD_GET_MOISTURE_MAX 0x04
|
||||||
|
#define CMD_SET_SENSOR_READS 0x05 // [cmd, value]
|
||||||
|
#define CMD_SET_PARAMS 0x06 // [cmd, min, max, reads]
|
||||||
|
#define CMD_FORCE_PUMP 0x07 // [cmd]
|
||||||
|
|
||||||
// Change based on how many vases max to manage [1 to ~100]
|
// Change based on how many vases max to manage [1 to ~100]
|
||||||
// larger numberss will require larger arrays stored in memory
|
// larger numberss will require larger arrays stored in memory
|
||||||
|
|||||||
Reference in New Issue
Block a user