this program deploy wathever message in a screen LCD 16x2 controlling it luminosity through sensor touch.
Dependencies: TSI TextLCD mbed
main.cpp
- Committer:
- corban
- Date:
- 2013-05-29
- Revision:
- 0:db745a0e50ab
File content as of revision 0:db745a0e50ab:
/*Instituto Politecnico Nacional 6° Sem Microprocesadores Prof Antulio Morgado Omar Serrano Herrera Alejandro Valentin Vanegas Monserrat Luna Rodriguez */ #include "mbed.h" #include "TextLCD.h" //libreria para escritura en ldc 16x2 #include "TSISensor.h" //libreria sensor touch TextLCD lcd(PTE29, PTE30, PTE20, PTE21, PTE22, PTE23); // rs, e, d4-d7 int main() { lcd.printf("Welcome to the ");//mensaje a desplegar lcd.printf("FREEDOM WORLD!!"); PwmOut led(PTD4); //activacion backlight TSISensor tsi; while(true) { led = tsi.readPercentage(); wait(0.1); } }