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 C12832 FXOS8700Q
Revision 3:ccbb9d52f4b8, committed 2020-06-01
- Comitter:
- karlaivon
- Date:
- Mon Jun 01 23:49:26 2020 +0000
- Parent:
- 2:f40808007912
- Commit message:
- ,
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f40808007912 -r ccbb9d52f4b8 main.cpp --- a/main.cpp Mon Jun 01 23:46:06 2020 +0000 +++ b/main.cpp Mon Jun 01 23:49:26 2020 +0000 @@ -3,7 +3,7 @@ C12832 lcd(SPI_MOSI, SPI_SCK, SPI_MISO, p8, p11); -AnalogIn Ain(p20); +AnalogIn Ain(p15); float ADCdata, voltaje; int main () { @@ -15,8 +15,8 @@ lcd.locate(0,16); - lcd.printf("%f", voltaje); - printf("%f /n/r", ADCdata); + lcd.printf("V: %f", voltaje); + printf("V: %f", ADCdata); wait(0.5); }