Fritz Hausmann
/
Bertl_LED
LED
main.cpp
- Committer:
- fritzhausmann
- Date:
- 2015-04-23
- Revision:
- 0:7d61b3dfaa5e
File content as of revision 0:7d61b3dfaa5e:
#include "mbed.h" #include "ur_Bertl.h" #include "const.h" class Led_Bertl : public ur_Bertl // Klasse deklarieren { public: void Turn2LedOn(); // Methodenprototyping }; void Led_Bertl :: Turn2LedOn() // Methodendefinition { TurnLedOff(LED_ALL); TurnLedOn(LED_BL1 | LED_BR1); } int main() { Led_Bertl karel; // Objekt erzeugen (installieren) karel.Turn2LedOn(); // Objektmethode aufrufen karel.Move(); karel.ShutOff(); }