Joelmir Teixeira
/
PROJETO_ARLINDO1
PROJETO
Diff: main.cpp
- Revision:
- 2:efdd27c5c2c9
- Parent:
- 1:808bed0f2433
diff -r 808bed0f2433 -r efdd27c5c2c9 main.cpp --- a/main.cpp Thu Jun 27 12:44:36 2019 +0000 +++ b/main.cpp Thu Jul 04 13:36:33 2019 +0000 @@ -6,6 +6,7 @@ TextLCD lcd(PA_4,PA_5,PA_6,PB_12,PB_13,PB_14,PB_15); AnalogIn adc(PA_0); AnalogIn tensaofixa(PA_1); +//AnalogIn freq(PA_8); InterruptIn botao(PA_7); volatile bool botao_pressed = false; // Used in the main loop @@ -44,6 +45,7 @@ resistencia = (tensao*1000)/(alim-tensao); corrente = (tensao/resistencia) * 1000; + if (botao_pressed == true) { // Set when button is pressed botao_pressed = false; cont = cont++;