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.
main.cpp
00001 #include "mbed.h" 00002 00003 // Potentionmeter is on mbed p15 00004 // Ensure J27 is fitted 00005 00006 AnalogIn pot (p15); 00007 00008 Serial pc (USBTX,USBRX); 00009 00010 int main() { 00011 while(1) { 00012 float ain = pot; 00013 pc.printf("Analog pot voltage = %.2fv\n",ain*3.3); 00014 wait(0.2); 00015 } 00016 }
Generated on Thu Jul 14 2022 21:02:25 by
1.7.2