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.
Diff: main.cpp
- Revision:
- 1:5eb86cc15d60
- Parent:
- 0:dd79e9efee0d
--- a/main.cpp Tue Dec 22 10:52:46 2020 +0000 +++ b/main.cpp Tue Dec 21 10:00:40 2021 +0000 @@ -1,19 +1,23 @@ #include "mbed.h" -AnalogIn adc_temp(ADC_TEMP); + enum estados {estadoUno, estadoDos} estado; const float AVG_SLOPE = 4.3E-03; const float V30 = 1.43; +float Vsense; DigitalOut led(LED1); DigitalIn boton(USER_BUTTON); +AnalogIn adc_temp(ADC_TEMP); + int main() { estado=estadoUno; + Vsense=adc_temp.read()*3.3; while(1) {