Feng Hong / Mbed OS Nucleo_rtos_basic
Committer:
hi1000
Date:
Sat Jul 06 09:47:09 2019 +0000
Revision:
17:faa4d4976d22
Parent:
14:2e17a27f56b2
Add first command - Init

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hi1000 14:2e17a27f56b2 1 #define BUTTON1_HOLD_EVENT 0x0001
hi1000 14:2e17a27f56b2 2 #define BUTTON1_PRESSED_EVENT 0x0002
hi1000 14:2e17a27f56b2 3 #define BUTTON2_HOLD_EVENT 0x0004
hi1000 14:2e17a27f56b2 4 #define BUTTON2_PRESSED_EVENT 0x0008
hi1000 14:2e17a27f56b2 5 #define BUTTON3_HOLD_EVENT 0x0010
hi1000 14:2e17a27f56b2 6 #define BUTTON3_PRESSED_EVENT 0x0020
hi1000 14:2e17a27f56b2 7 #define BUTTON4_HOLD_EVENT 0x0040
hi1000 14:2e17a27f56b2 8 #define BUTTON4_PRESSED_EVENT 0x0080
hi1000 14:2e17a27f56b2 9 #define MENU_HOLD_EVENT BUTTON4_HOLD_EVENT
hi1000 14:2e17a27f56b2 10 #define MENU_PRESSED_EVENT BUTTON4_PRESSED_EVENT
hi1000 14:2e17a27f56b2 11 #define ENTER_HOLD_EVENT BUTTON3_HOLD_EVENT
hi1000 14:2e17a27f56b2 12 #define ENTER_PRESSED_EVENT BUTTON3_PRESSED_EVENT
hi1000 14:2e17a27f56b2 13 #define LEFT_HOLD_EVENT BUTTON2_HOLD_EVENT
hi1000 14:2e17a27f56b2 14 #define LEFT_PRESSED_EVENT BUTTON2_PRESSED_EVENT
hi1000 14:2e17a27f56b2 15 #define RIGHT_HOLD_EVENT BUTTON1_HOLD_EVENT
hi1000 14:2e17a27f56b2 16 #define RIGHT_PRESSED_EVENT BUTTON1_PRESSED_EVENT
hi1000 14:2e17a27f56b2 17 #define LCD_DISPLAY_HOLD_EVENT 0x0001
hi1000 17:faa4d4976d22 18 #define LCD_DISPLAY_RELEASE_EVENT 0x0002
hi1000 17:faa4d4976d22 19
hi1000 17:faa4d4976d22 20 #define COMMAND_INIT 0 // all the devices return to the point 0 and return the current possition or current weight
hi1000 17:faa4d4976d22 21 #define COMMAND_PLUS 1 // for the devices to plus weight return the weight
hi1000 17:faa4d4976d22 22 #define COMMAND_MINUS 2 // for the devices to minus weight return the weight
hi1000 17:faa4d4976d22 23 #define COMMAND_MOVE_ABSOLUTE 3 // for the devices to move to the absolute position return the current absolute position
hi1000 17:faa4d4976d22 24 #define COMMAND_MOVE_RELATIVE 4 // for the devices to move relative distance return the current absolute position
hi1000 17:faa4d4976d22 25 #define COMMAND_REPORT_WEIGHT 5 // for the devices to report the current weight
hi1000 17:faa4d4976d22 26 #define COMMAND_REPORT_POSITION 6 // for the devices to report the current absolute position
hi1000 17:faa4d4976d22 27 #define COMMAND_CLEAN 7 // for the devices to clean the cups return done or failed
hi1000 17:faa4d4976d22 28 #define COMMAND_TARE 8 // for the devices to tare the scale return done or failed
hi1000 17:faa4d4976d22 29 #define COMMAND_SHAKE_CUP 9 // for the device to shake the cups return done or failed
hi1000 17:faa4d4976d22 30 #define COMMAND_POUR_TEA 10 // for the device to pour the tea return done or failed
hi1000 17:faa4d4976d22 31 #define COMMAND_FINISH 11 // for everything finished return done or failed
hi1000 17:faa4d4976d22 32 #define COMMAND_RESET 12 // for the devices return to the point 0 and clean themselvies