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.
Diff: eventflags.h
- Revision:
- 17:faa4d4976d22
- Parent:
- 14:2e17a27f56b2
diff -r f4277e9b8612 -r faa4d4976d22 eventflags.h --- a/eventflags.h Sat Jun 29 09:53:19 2019 +0000 +++ b/eventflags.h Sat Jul 06 09:47:09 2019 +0000 @@ -15,4 +15,18 @@ #define RIGHT_HOLD_EVENT BUTTON1_HOLD_EVENT #define RIGHT_PRESSED_EVENT BUTTON1_PRESSED_EVENT #define LCD_DISPLAY_HOLD_EVENT 0x0001 -#define LCD_DISPLAY_RELEASE_EVENT 0x0002 \ No newline at end of file +#define LCD_DISPLAY_RELEASE_EVENT 0x0002 + +#define COMMAND_INIT 0 // all the devices return to the point 0 and return the current possition or current weight +#define COMMAND_PLUS 1 // for the devices to plus weight return the weight +#define COMMAND_MINUS 2 // for the devices to minus weight return the weight +#define COMMAND_MOVE_ABSOLUTE 3 // for the devices to move to the absolute position return the current absolute position +#define COMMAND_MOVE_RELATIVE 4 // for the devices to move relative distance return the current absolute position +#define COMMAND_REPORT_WEIGHT 5 // for the devices to report the current weight +#define COMMAND_REPORT_POSITION 6 // for the devices to report the current absolute position +#define COMMAND_CLEAN 7 // for the devices to clean the cups return done or failed +#define COMMAND_TARE 8 // for the devices to tare the scale return done or failed +#define COMMAND_SHAKE_CUP 9 // for the device to shake the cups return done or failed +#define COMMAND_POUR_TEA 10 // for the device to pour the tea return done or failed +#define COMMAND_FINISH 11 // for everything finished return done or failed +#define COMMAND_RESET 12 // for the devices return to the point 0 and clean themselvies \ No newline at end of file