Start OLED support for ana-digi
This commit is contained in:
parent
fc1c62b9c0
commit
59068bbd13
6 changed files with 173 additions and 1 deletions
|
@ -22,12 +22,19 @@
|
|||
|
||||
#define MW_SOF 0x01
|
||||
|
||||
/* general */
|
||||
#define MW_GET_DEVICE_TYPE 0x01
|
||||
#define MW_GET_DEVICE_TYPE_RSP 0x02
|
||||
#define MW_GET_INFORMATION_STRING 0x03
|
||||
#define MW_GET_INFORMATION_STRING_RSP 0x04
|
||||
|
||||
/* specific for ana-digi version */
|
||||
#define MW_UPDATE_OLED_DISPLAY_MSG 0x10
|
||||
#define MW_WRITE_OLED_IDLE_DISPLAY_MSG 0x11
|
||||
#define MW_WRITE_OLED_SCROLL_BUFFER_MSG 0x15
|
||||
#define MW_ENABLE_OLED_DISPLAY_MSG 0x16
|
||||
#define MW_ADVANCE_WATCH_HANDS 0x20
|
||||
|
||||
#define MW_SET_VIBRATE_MODE 0x23
|
||||
|
||||
#define MW_SET_REAL_TIME_CLOCK 0x26
|
||||
|
@ -43,6 +50,7 @@
|
|||
#define MW_STATUS_CHANGE_EVENT 0x33
|
||||
#define MW_BUTTON_EVENT_MESSAGE 0x34
|
||||
|
||||
/* specific for digital version */
|
||||
#define MW_WRITE_BUFFER 0x40
|
||||
#define MW_CONFIGURE_MODE 0x41
|
||||
#define MW_CONFIGURE_IDLE_BUFFER_SIZE 0x42
|
||||
|
@ -82,11 +90,16 @@
|
|||
#define MW_BUTTON_F 0x06
|
||||
#define MW_BUTTON_PULLSW 0x07
|
||||
|
||||
/* button events */
|
||||
#define MW_BUTTON_IMMEDIATE 0x00
|
||||
#define MW_BUTTON_PRESS_AND_RELEASE 0x01
|
||||
#define MW_BUTTON_HOLD_RELEASE 0x02
|
||||
#define MW_BUTTON_LONG_HOLD_RELEASE 0x03
|
||||
|
||||
/* OLEDs */
|
||||
|
||||
#define MW_OLED_UPPER 0x00
|
||||
#define MW_OLED_LOWER 0x01
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue