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 DigitalOut myled(LED1); 00004 DigitalIn pb(p8); 00005 // SPST Pushbutton demo using internal PullUp function 00006 // no external PullUp resistor needed 00007 // Pushbutton from P8 to GND. 00008 int main() { 00009 pb.mode(PullUp); 00010 while(1) { 00011 myled = pb; 00012 } 00013 }
Generated on Wed Jul 13 2022 05:38:16 by
1.7.2