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: conversor.cpp
- Revision:
- 14:c12150a053fd
- Parent:
- 13:495cb8a5ca7d
--- a/conversor.cpp Wed Jun 10 20:33:20 2020 +0000 +++ b/conversor.cpp Thu Jun 11 02:08:10 2020 +0000 @@ -79,9 +79,9 @@ } //Onda senoidal else if (estado_botao == 3){//teste do valor da variável estado_botao para determinar qual onda será a saída do gerador - for(int i; i<8;i++){ + for(int i=0; i<8;i++){ saida_digital = senoide[i]; - valor = leitura_an.read()*vref; + valor = leitura_an.read(); pc.printf("\r\t%1.3f\n",valor); wait(0.5); }