
Bluepill_Plantilla Es la plantilla base (mejorada) para soporte y compatibilidad en Mbed para la tarjeta "BluePill" basada en el procesador ARM M3 STM32F103C8T6
Diff: main.cpp
- Revision:
- 7:62b714b5d89d
- Parent:
- 6:f47832fe0b07
- Child:
- 8:9cb2877285b2
--- a/main.cpp Wed Feb 02 02:09:26 2022 +0000 +++ b/main.cpp Tue Feb 22 04:28:18 2022 +0000 @@ -71,7 +71,7 @@ DigitalOut Led_Testigo(PB_1); // Inicializa el LED Testigo (Externo) PwmOut Pwm1(PA_7); // Inicializa el PWM para el LED Externo PwmOut Buzzer(PB_0); // Inicializa el PWM para el Buzzer Externo -AnalogIn Sensor1(PB_1); // Inicializa Canal Analógico para Potenciometro 1 +AnalogIn Sensor1(PA_1); // Inicializa Canal Analógico para Potenciometro 1 Serial Terminal(PA_2, PA_3); // Inicializa la Comunicación Serial a la PC (Rx, Tx) /* +------------------------------------------------------------------------------- @@ -204,9 +204,9 @@ { // The on-board LED is connected, via a resistor, to +3.3V (not to GND). // So to turn the LED on or off we have to set it to 0 or 1 respectively - Led_Testigo = 1; // turn the LED on (using Positive Logic) + Led_Testigo = LED_ON; // turn the LED on (using Positive Logic) wait_ms(200); // 200 millisecond - Led_Testigo = 0; // turn the LED off (using Positive Logic) + Led_Testigo = LED_OFF; // turn the LED off (using Positive Logic) wait_ms(1000); // 1000 millisecond }