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 MATSUbed USBDevice
Diff: main.cpp
- Revision:
- 0:41789135608a
- Child:
- 1:f3d4794ec7a4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Oct 05 10:49:44 2016 +0000 @@ -0,0 +1,29 @@ +#include "mbed.h" +#include "USBSerial.h" + +#define LED1 P0_29 +#define LED2 P0_28 +#define LED3 P0_27 +#define LED4 P0_26 + +#define ISP0 P0_4 +#define ISP1 P0_16 + +USBSerial pc; +BusOut myled(LED1, LED2, LED3, LED4); + +//DigitalIn sw1(ISP0); +//DigitalIn sw2(ISP1); + +int main() { + myled = 0b0000; + while(pc.readable() == 0); + pc.printf("KEY DETECTED!!\r\nPROGRAM START\r\n"); + while(1){ + pc.printf("program running...\r\n"); + myled = 0b0001; + wait(0.5); + myled = 0b0000; + wait(0.5); + } +}