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: LED_WS2812 mbed X_NUCLEO_IHM02A1
Robot.h
00001 //#include "AsyncServo.h" 00002 #include "LED_WS2812.h" 00003 //#include "AsyncBuzzer.h" 00004 00005 // --- USB Debug Port ----------- 00006 00007 // #define DEBUG(...) { pc_uart.printf(__VA_ARGS__); bt_uart.printf(__VA_ARGS__);} 00008 #define DEBUG(...) { __disable_irq();bt_uart.printf(__VA_ARGS__); pc_uart.printf(__VA_ARGS__);__enable_irq();} 00009 // #define DEBUG(...) { bt_uart.printf(__VA_ARGS__); } 00010 00011 #define CATCH_BUTTON(button, func) button.fall(&func) 00012 00013 #define CASE(letter, text, commands) case letter: if(flaghelp) DEBUG("\t%c : %s\n\r", letter,text);if(!flaghelp) {commands;break;}; 00014 00015
Generated on Mon Aug 1 2022 15:36:04 by
1.7.2