#include "mbed.h" #include "TextLCD.h" TextLCD lcd(p28, p27, p26, p25, p24, p23);// rs, e, d4-d7 Serial pc(USBTX, USBRX); char names[4][100] = { "Maher Saleem ", "Yazeed Obaid ", "Majd Bassoumi ", "Hussein Dahir "}; bool flag = true; int main() { pc.baud(115200); int i = 0; while(1){ i = (i+1) % 4; if ( pc.readable( ) ){ char c = pc.getc(); if (c == '1') { lcd.printf("111\n"); } if (c == '0') lcd.printf("Hellooooooooooo\n"); } wait(1); } }