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
main.cpp
00001 #include "mbed.h" 00002 00003 AnalogIn p1(p19); //pot1 00004 00005 int main() { 00006 while(1) { 00007 float p1_float = p1; // read pot1 value 00008 float p1_volts = p1_float * 3.3; // convert analog value to voltage 00009 printf("float: %f volts: %f \r\n",p1_float, p1_volts); 00010 wait(3); 00011 } 00012 }
Generated on Sat Sep 16 2023 03:45:54 by
1.7.2