Mercurial > public > hwos_code
comparison src/comm.asm @ 269:1207cf9a9408
adjust menu for different hardware versions
author | heinrichsweikamp |
---|---|
date | Mon, 20 Apr 2015 11:18:30 +0200 |
parents | ad62dff7739a |
children | 12ee30cbced9 |
comparison
equal
deleted
inserted
replaced
268:29acdb601548 | 269:1207cf9a9408 |
---|---|
31 #DEFINE timeout_comm_pre_mode .120 ; Pre-loop | 31 #DEFINE timeout_comm_pre_mode .120 ; Pre-loop |
32 #DEFINE timeout_comm_mode .120 ; Download mode | 32 #DEFINE timeout_comm_mode .120 ; Download mode |
33 #DEFINE timeout_service_mode .120 ; Service mode | 33 #DEFINE timeout_service_mode .120 ; Service mode |
34 | 34 |
35 #DEFINE comm_title_row .0 | 35 #DEFINE comm_title_row .0 |
36 #DEFINE comm_title_column .50 | 36 #DEFINE comm_title_column_usb .50 |
37 #DEFINE comm_title_column_ble .25 | |
37 | 38 |
38 #DEFINE comm_string_row .30 | 39 #DEFINE comm_string_row .30 |
39 #DEFINE comm_string_column .40 | 40 #DEFINE comm_string_column .40 |
40 | 41 |
41 | 42 |
61 btfss vusb_in ; USB plugged in? | 62 btfss vusb_in ; USB plugged in? |
62 return ; No, it was only a glitch | 63 return ; No, it was only a glitch |
63 comm_mode0: | 64 comm_mode0: |
64 call TFT_ClearScreen | 65 call TFT_ClearScreen |
65 WIN_COLOR color_greenish | 66 WIN_COLOR color_greenish |
66 WIN_SMALL comm_title_column, comm_title_row | 67 btfsc ble_available ; ble available |
67 STRCPY_TEXT_PRINT tUsbTitle ; comm Mode | 68 bra comm_mode0_ble |
69 WIN_SMALL comm_title_column_usb, comm_title_row | |
70 STRCPY_TEXT_PRINT tUsbTitle ; USB Mode | |
71 bra comm_mode0_common | |
72 comm_mode0_ble: | |
73 WIN_SMALL comm_title_column_ble, comm_title_row | |
74 STRCPY_TEXT_PRINT tBleTitle ; BLE Mode | |
75 comm_mode0_common: | |
68 call TFT_standard_color | 76 call TFT_standard_color |
69 WIN_TOP .10 | 77 WIN_TOP .10 |
70 WIN_LEFT .1 | 78 WIN_LEFT .1 |
71 movlw 0xDE | 79 movlw 0xDE |
72 movwf TBLPTRL | 80 movwf TBLPTRL |