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 app-shield-joystick by
main.cpp
- Committer:
- chris
- Date:
- 2014-02-06
- Revision:
- 2:507020c78d79
- Parent:
- 1:c409f3abab09
- Child:
- 4:dd6d3b44dcb9
File content as of revision 2:507020c78d79:
#include "mbed.h"
DigitalOut red_led(D5);
DigitalOut blue_led(D8);
DigitalOut green_led(D9);
DigitalIn up(A2);
DigitalIn down(A3);
DigitalIn left(A4);
AnalogIn right(A5);
DigitalIn fire(D4);
int main()
{
while (1) {
red_led = !up && ! fire;
blue_led = !down;
green_led= !left && !right;
}
}
