Leds work simultanously. Version 3.1
Dependents: bertl_led bertl_led bertl_led bertl_led ... more
Fork of Bertl by
BULME HTL Graz-Gösting
FSST - Hardwarenahe Programmierung
Created by Prof.Dr. Franz Pucher
Inhalt
Start mit folgendem Code in main.cpp eines neuen Projektes mbed_blinky:
#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); } } }
Diff: Robot.h
- Revision:
- 18:e9bb4513ae3a
- Parent:
- 17:308802267a62
diff -r 308802267a62 -r e9bb4513ae3a Robot.h --- a/Robot.h Thu Nov 12 19:05:56 2015 +0000 +++ b/Robot.h Fri Feb 19 15:28:42 2016 +0000 @@ -14,7 +14,7 @@ #ifndef ROBOT_H #define ROBOT_H -class Robot : public ur_Bertl +class Robot : public Bertl { public: Robot() {};