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
Fork of DigitalOut_HelloWorld_WIZwiki-W7500 by
main.cpp
00001 /* Digital Output Example Program */ 00002 00003 #include "mbed.h" 00004 00005 DigitalOut myled_R(LED1); // LED_RED 00006 DigitalOut myled_G(LED2); // LED_GREEN 00007 DigitalOut myled_B(LED3); // LED_BLUE 00008 00009 int main() 00010 { 00011 while(1) { 00012 myled_R = 0; // LED_RED ON 00013 myled_G = 0; // LED_GREEN ON 00014 myled_B = 0; // LED_BLUE ON 00015 wait(0.5); 00016 myled_R = 1; // LED_RED OFF 00017 myled_G = 1; // LED_GREEN OFF 00018 myled_B = 1; // LED_BLUE OFF 00019 wait(0.5); 00020 } 00021 }
Generated on Sun Jul 24 2022 10:26:40 by
1.7.2
