Leds work simultanously. Version 3.1
Dependents: bertl_led bertl_led bertl_led bertl_led ... more
Fork of Bertl by
Getting started
Bibliothek in Program Workspace einbinden mit:
Rechte Maustaste auf Programmname und > Import Library > From URL
https://developer.mbed.org/users/fpucher/code/Bertl/
Konstantendefinitionen: https://developer.mbed.org/users/fpucher/code/Bertl/docs/308802267a62/const_8h.html
#include "mbed.h" #include "const.h" #include "Robot.h" Robot bertl; int main() { bertl.NibbleLeds(0x0F); wait(1); bertl.NibbleLeds(0x00); while(1) { if(bertl.IsButtonPressed(BTN_BL)) { bertl.TurnLedOn(LED_BL1); } if(bertl.IsButtonPressed(BTN_BR)) { bertl.TurnLedOff(LED_BL1); } } }