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: config.h
- Revision:
- 4:76acfddc26fb
- Parent:
- 1:fafbac0ba96d
- Child:
- 12:cedc088eaf05
diff -r 01b183fe8b41 -r 76acfddc26fb config.h --- a/config.h Thu Mar 26 13:06:00 2015 +0000 +++ b/config.h Tue Apr 07 12:30:39 2015 +0000 @@ -1,8 +1,8 @@ /*! \file config.h \brief A Documented file. -* name: config.h Version: 1.1 -* author: PE HTL BULME -* email: pe@bulme.at +* name: config.h Version: 1.1 \n +* author: PE HTL BULME \n +* email: pe@bulme.at \n * description: * Wiring for ur_Bertl The Robot */