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.
main_favbutton.cpp
- Committer:
- va009039
- Date:
- 2015-06-12
- Revision:
- 0:3395699bd0df
- Child:
- 1:eea17a20509b
File content as of revision 0:3395699bd0df:
#if 0
#include "mbed.h"
#include "USBKeyboard.h"
DigitalIn button(USER_BUTTON);
DigitalOut led1(LED1);
extern void L152RE_USBclock_setup();
int main() {
L152RE_USBclock_setup();
USBKeyboard keyboard;
while(1) {
if (!button) {
led1 = 1;
keyboard.keyCode('f');
wait_ms(200);
led1 = 0;
}
}
}
#endif