mipractica del gato

Dependencies:   mbed FXOS8700Q TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "C12832.h"
00003 
00004 C12832 lcd(SPI_MOSI, SPI_SCK, SPI_MISO, p8, p11);
00005 
00006 
00007 int main() {
00008  
00009     int i;
00010         while(1){  
00011             
00012         lcd.cls();
00013         lcd.locate(1,1);
00014         lcd.printf("Hello There");
00015         lcd.locate(1,15);
00016         lcd.printf("Eres bienvenido");
00017         
00018 
00019          for (int i = 0 ; i < 60; i++) {
00020         lcd.locate(80, 15);
00021         lcd.printf(">w<  %d",i);
00022         wait(1);
00023         lcd.copy_to_lcd(); 
00024        
00025     }
00026                 }
00027         
00028 }