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: mbed
Revision 7:62b714b5d89d, committed 2022-02-22
- Comitter:
- Antulius
- Date:
- Tue Feb 22 04:28:18 2022 +0000
- Parent:
- 6:f47832fe0b07
- Commit message:
- Bluepill_Plantilla Es la plantilla base (mejorada) para soporte y compatibilidad en Mbed para la tarjeta "BluePill" basada en el procesador ARM M3 STM32F103C8T6
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f47832fe0b07 -r 62b714b5d89d main.cpp
--- 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
}