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
main.cpp
- Committer:
- Tiryoh
- Date:
- 2018-11-26
- Revision:
- 1:f3d4794ec7a4
- Parent:
- 0:41789135608a
- Child:
- 2:f44ab60c5c27
File content as of revision 1:f3d4794ec7a4:
#include "mbed.h" #include "USBSerial.h" #include "MATSU-bed.h" 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); } }