Kamil Maruta / Mbed 2 deprecated zad_2d_2

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers KeyboardTsLcd.cpp Source File

KeyboardTsLcd.cpp

00001 
00002 #include "KeyboardTsLcd.h"
00003  
00004 KeyboardTsLcd::KeyboardTsLcd()
00005 {
00006 pKeyboard = new KeyboardTs(0);
00007 pLed = new LedLcd(0);
00008  
00009 };
00010 int KeyboardTsLcd::eRead (void) {
00011         switch(pKeyboard -> eRead()) {
00012             case LED_0:
00013                 pLed -> On(0);
00014                 return 2;
00015             case LED_1:
00016                 pLed -> On(1);
00017                 return 1;
00018             case LED_2:
00019                 pLed -> On(2);
00020                 return 0;
00021             
00022             default:
00023                 pLed -> On(4);
00024                 return 4;
00025             }
00026 };
00027