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 #define PERIOD 250 00003 00004 int main(){ 00005 DigitalOut self2(PC_7); 00006 DigitalOut a(PA_10); 00007 DigitalOut b(PA_9); 00008 DigitalOut c(PA_8); 00009 DigitalOut d(PB_10); 00010 DigitalOut e(PB_5); 00011 DigitalOut f(PB_4); 00012 DigitalOut g(PB_3); 00013 DigitalIn taster(PC_8); 00014 while(true){ 00015 self2.write(0); 00016 a.write(0); 00017 b.write(0); 00018 c.write(0); 00019 d.write(0); 00020 e.write(0); 00021 f.write(0); 00022 g.write(1); 00023 wait_ms(PERIOD); 00024 } 00025 } 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067
Generated on Sat Dec 3 2022 11:45:14 by
1.7.2