hello word javier duarte franco

Dependencies:   mbed mbed-STM32F103C8T6 TextLCD

Files at this revision

API Documentation at this revision

Comitter:
Javierdf
Date:
Sun Nov 17 17:33:32 2019 +0000
Commit message:
Hello Word Blue Pill Javier Duarte Franco

Changed in this revision

TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-STM32F103C8T6.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TextLCD.lib	Sun Nov 17 17:33:32 2019 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/wim/code/TextLCD/#ce348c002929
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 17 17:33:32 2019 +0000
@@ -0,0 +1,59 @@
+ ///////////////////programa test_LCD BLUE PILL
+#include "stm32f103c8t6.h"
+#include "mbed.h"
+#include "TextLCD.h"
+ 
+//Declaración del periferico SPI con sus pines a utilizar 
+SPI spi_lcd(PB_15, NC, PB_13); // MOSI, MISO, SCLK:::::Datos del ejemplo
+DigitalOut ledg(PA_4);
+///////////////////
+/* PINES 74HC595
+SCK PIN_11
+MOSI PIN_14
+CS PIN_12*/
+//Configuración de la libreria del LCD
+TextLCD_SPI lcd(&spi_lcd, PB_12, TextLCD::LCD16x2,TextLCD::HD44780); // SPI bus, CS pin, LCD Type ok
+
+//AnalogIn an_pin(PTB1);              //Creación de la entrada analogica
+
+
+float conv;
+
+int main() {
+    
+  //  int i=0;
+    //conv=0;
+    // Limpieza del LCD     
+    lcd.cls();
+
+    //Retardo de 0.5 segundos
+    wait(0.50);
+
+    //Posicionar al LCD en el espacio 0,0  ORIGEN
+    lcd.locate(0,0);
+    
+    //Escritura de prueba
+    lcd.printf("Start PowerTip");
+
+    wait(1.0);
+    
+    lcd.cls();
+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+/* Asignación del periodo para la salida del PWM*/
+/*Codigos de prueba*/
+
+  while(true){
+   lcd.cls();
+    
+    //conv=an_pin.read();                 //Lectura del Pin Analogico
+    /*
+    Su ecuación va aqui
+    */
+    lcd.printf("Variable del ADC: i= %f ", conv);
+    wait(0.5);
+    //i++;  
+    ledg=!ledg;      
+     }
+
+//FIN DEL PROGRAMA    
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-STM32F103C8T6.lib	Sun Nov 17 17:33:32 2019 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/hudakz/code/mbed-STM32F103C8T6/#727468adfd1d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Nov 17 17:33:32 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee
\ No newline at end of file