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 #include "counter.h" 00003 00004 PwmOut pwm(D10); // wire to tie D10, D12, and D13(LED1) 00005 DigitalIn led(LED1); 00006 00007 int main() { 00008 Counter count(D12); 00009 count = 0; 00010 00011 pwm.period(0.1); 00012 pwm = 0.5; 00013 00014 while(1) { 00015 printf("Count so far: %d\n", int(count)); 00016 wait(1); 00017 } 00018 }
Generated on Thu Jul 28 2022 03:03:00 by
1.7.2