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 DigitalOut outputs[] = {(P0_0), (P0_1), (P0_2),(P0_3),(P0_4),(P0_5),(P0_6),(P0_7),(P0_8),(P0_9),(P0_10), 00004 (P0_11),(P0_12),(P0_13),(P0_14),(P0_15),(P0_16),(P0_17),(P0_18),(P0_19),(P0_20), 00005 (P0_21),(P0_22),(P0_23),(P0_24),(P0_25),(P0_26),(P0_27),(P0_28),(P0_29),(P0_30)}; 00006 //Test that all pins are working. 00007 int main() { 00008 while(1) { 00009 for (int i =0;i<=30;i++){ 00010 outputs[i]=1; 00011 wait(0.01*i); 00012 outputs[i]=0; 00013 } 00014 } 00015 }
Generated on Tue Jul 12 2022 21:47:36 by
1.7.2