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.
Crealab.h@0:0e577ce96b2f, 2020-02-08 (annotated)
- Committer:
- elab
- Date:
- Sat Feb 08 09:48:46 2020 +0000
- Revision:
- 0:0e577ce96b2f
working version wihout LEDs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elab | 0:0e577ce96b2f | 1 | #include "mbed.h" |
elab | 0:0e577ce96b2f | 2 | #include "CreaBot.h" |
elab | 0:0e577ce96b2f | 3 | |
elab | 0:0e577ce96b2f | 4 | // --- USB Debug Port ----------- |
elab | 0:0e577ce96b2f | 5 | |
elab | 0:0e577ce96b2f | 6 | // #define DEBUG(...) { pc_uart.printf(__VA_ARGS__); bt_uart.printf(__VA_ARGS__);} |
elab | 0:0e577ce96b2f | 7 | #define DEBUG(...) { __disable_irq();bt_uart.printf(__VA_ARGS__); pc_uart.printf(__VA_ARGS__);__enable_irq();} |
elab | 0:0e577ce96b2f | 8 | |
elab | 0:0e577ce96b2f | 9 | //#define DEBUG(...) { pc_uart.printf(__VA_ARGS__); } |
elab | 0:0e577ce96b2f | 10 | //#define DEBUG(...) { bt_uart.printf(__VA_ARGS__); } |
elab | 0:0e577ce96b2f | 11 | |
elab | 0:0e577ce96b2f | 12 | #define CATCH_BUTTON(button, func) button.fall(&func) |
elab | 0:0e577ce96b2f | 13 | |
elab | 0:0e577ce96b2f | 14 | #define CASE(letter, text, commands) case letter: DEBUG("\t%c : %s\n\r", letter,text);if(!flaghelp) {commands;break;}; |
elab | 0:0e577ce96b2f | 15 | |
elab | 0:0e577ce96b2f | 16 |