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.
motordc2.cpp
00001 #include "mbed.h" 00002 AnalogIn pot(PTB3); 00003 PwmOut motordc(PTD4); 00004 DigitalOut myled(LED1); 00005 00006 int main() { 00007 00008 myled=0; 00009 wait(0.5); 00010 myled=1; 00011 00012 00013 while(1) { 00014 float input = pot; 00015 motordc = input; 00016 wait(0.1); 00017 } 00018 00019 }
Generated on Fri Jul 22 2022 20:54:12 by
1.7.2