omar herrera / Mbed 2 deprecated LCD16x2FREEDOM

Dependencies:   TSI TextLCD mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 /*Instituto Politecnico Nacional
00002   6° Sem
00003   Microprocesadores
00004   Prof Antulio Morgado 
00005   
00006   Omar Serrano Herrera
00007   Alejandro Valentin Vanegas
00008   Monserrat Luna Rodriguez
00009 */
00010 
00011 #include "mbed.h"
00012 #include "TextLCD.h"      //libreria para escritura en ldc 16x2
00013 #include "TSISensor.h"   //libreria sensor touch
00014 
00015 TextLCD lcd(PTE29, PTE30, PTE20, PTE21, PTE22, PTE23); // rs, e, d4-d7
00016 
00017 int main() {
00018     lcd.printf("Welcome to the  ");//mensaje a desplegar
00019     lcd.printf("FREEDOM WORLD!!");
00020 
00021     PwmOut led(PTD4);             //activacion backlight
00022     TSISensor tsi;
00023     
00024     while(true)
00025     {
00026      led = tsi.readPercentage();
00027      wait(0.1);
00028      }
00029 
00030 }
00031