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.
Fork of mbed-apps-shield by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut red_led(D5); 00004 DigitalOut blue_led(D8); 00005 DigitalOut green_led(D9); 00006 00007 DigitalIn up(A2); 00008 DigitalIn down(A3); 00009 DigitalIn left(A4); 00010 AnalogIn right(A5); 00011 DigitalIn fire(D4); 00012 00013 00014 int main() 00015 { 00016 00017 while (1) { 00018 red_led = !up && ! fire; 00019 blue_led = !down; 00020 green_led= !left && !right; 00021 } 00022 } 00023 00024
Generated on Tue Jul 12 2022 11:50:38 by
