Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TextLCD MbedJSONValue libMotiv picojson mbed-rtos mbed
Fork of Mbed_MotiVControllerBox by
Diff: devices/Flower.h
- Revision:
- 0:2279181caaa1
diff -r 000000000000 -r 2279181caaa1 devices/Flower.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devices/Flower.h Sat Oct 25 00:11:12 2014 +0000
@@ -0,0 +1,22 @@
+#ifndef MOTIV_FLOWER_H
+#define MOTIV_FLOWER_H
+
+#include "../MODSERIAL/MODSERIAL.h"
+#include "Device.h"
+
+class Flower : public Device
+{
+public:
+ Flower(MODSERIAL* ms);
+ ~Flower();
+
+ int id; //Id needed to control the right flower
+ void setLed(int state); //Set THE LED to state. 0=off, 1=on
+
+private:
+ enum COMMANDS {
+ SET_LED = 6
+ };
+};
+
+#endif
\ No newline at end of file
