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); } } }
Revisions of const.h
Revision | Date | Message | Actions |
---|---|---|---|
4:76acfddc26fb | 2015-04-07 | Predicats added, such as FrontIsClear(), NextToABeeper(), AnyBeepersInBeeperBag(), ... | File Diff Annotate |
3:01b183fe8b41 | 2015-03-26 | I2C Updated for LED problems | File Diff Annotate |
2:1cd559ff516b | 2015-03-26 | Time for TurnLeft and Move added | File Diff Annotate |
1:fafbac0ba96d | 2015-03-19 | FrontIsClear() with ultrasonic sensor added | File Diff Annotate |
0:66e9a0afcbd6 | 2015-02-26 | ur_Bertl based on simple class design with documentaton | File Diff Annotate |