![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
1
Dependencies: BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed
KeyboardTsLcd.cpp@0:6b004e89c859, 2018-05-14 (annotated)
- Committer:
- marutson
- Date:
- Mon May 14 18:22:52 2018 +0000
- Revision:
- 0:6b004e89c859
1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marutson | 0:6b004e89c859 | 1 | |
marutson | 0:6b004e89c859 | 2 | #include "KeyboardTsLcd.h" |
marutson | 0:6b004e89c859 | 3 | |
marutson | 0:6b004e89c859 | 4 | KeyboardTsLcd::KeyboardTsLcd() |
marutson | 0:6b004e89c859 | 5 | { |
marutson | 0:6b004e89c859 | 6 | pKeyboard = new KeyboardTs(0); |
marutson | 0:6b004e89c859 | 7 | pLed = new LedLcd(0); |
marutson | 0:6b004e89c859 | 8 | |
marutson | 0:6b004e89c859 | 9 | }; |
marutson | 0:6b004e89c859 | 10 | int KeyboardTsLcd::eRead (void) { |
marutson | 0:6b004e89c859 | 11 | switch(pKeyboard -> eRead()) { |
marutson | 0:6b004e89c859 | 12 | case LED_0: |
marutson | 0:6b004e89c859 | 13 | pLed -> On(0); |
marutson | 0:6b004e89c859 | 14 | return 2; |
marutson | 0:6b004e89c859 | 15 | case LED_1: |
marutson | 0:6b004e89c859 | 16 | pLed -> On(1); |
marutson | 0:6b004e89c859 | 17 | return 1; |
marutson | 0:6b004e89c859 | 18 | case LED_2: |
marutson | 0:6b004e89c859 | 19 | pLed -> On(2); |
marutson | 0:6b004e89c859 | 20 | return 0; |
marutson | 0:6b004e89c859 | 21 | |
marutson | 0:6b004e89c859 | 22 | default: |
marutson | 0:6b004e89c859 | 23 | pLed -> On(4); |
marutson | 0:6b004e89c859 | 24 | return 4; |
marutson | 0:6b004e89c859 | 25 | } |
marutson | 0:6b004e89c859 | 26 | }; |
marutson | 0:6b004e89c859 | 27 |