Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: bertl_led bertl_led bertl_led bertl_led ... more
Fork of Bertl by
You are viewing an older revision! See the latest version
Homepage
BULME HTL Graz-Gösting¶
FSST - Hardwarenahe Programmierung¶
Created by Prof.Dr. Franz Pucher
Inhalt¶
Start mit folgenden 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); } } }