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 1:adcde9f41a67, committed 2021-02-22
- Comitter:
- rafaelff3
- Date:
- Mon Feb 22 16:20:34 2021 +0000
- Parent:
- 0:9b9b318a5f0d
- Commit message:
- Loop inifinito adicionado
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Feb 22 16:17:57 2021 +0000 +++ b/main.cpp Mon Feb 22 16:20:34 2021 +0000 @@ -7,6 +7,8 @@ int main() { - sinal = freio.read(); // Leitura vai de 0.2 (0 bar) a 1 (10 bar) - pressao = (sinal - 0.2)/0.8*10 + while(1){ + sinal = freio.read(); // Leitura vai de 0.2 (0 bar) a 1 (10 bar) + pressao = (sinal - 0.2)/0.8*10 + } } \ No newline at end of file