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
main.cpp
00001 #include "mbed.h" 00002 #include "C12832.h" 00003 00004 C12832 lcd(SPI_MOSI, SPI_SCK, SPI_MISO, p8, p11); 00005 00006 AnalogIn Ain(p20); 00007 float ADCdata, voltaje; 00008 00009 int main () { 00010 while (1) { 00011 ADCdata= Ain.read_u16(); 00012 lcd.locate(0,3); 00013 lcd.printf("R: %f", ADCdata); 00014 voltaje= (ADCdata*5/1024); 00015 00016 00017 lcd.locate(0,16); 00018 lcd.printf("%f", voltaje); 00019 printf("%f /n/r", ADCdata); 00020 wait(0.5); 00021 00022 } 00023 }
Generated on Thu Aug 18 2022 17:49:00 by
1.7.2