Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TSI TextLCD mbed
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
Generated on Sat Jul 16 2022 20:55:06 by
1.7.2