michael hollegha
/
BertlBlinkDemo
BertlBlinkDemo
Fork of BertlTemplate2 by
BertlBlinkDemo.cpp
- Committer:
- hollegha2
- Date:
- 2017-03-08
- Revision:
- 5:a6f2a5a74760
File content as of revision 5:a6f2a5a74760:
#include "mbed.h" #include "Serial_HL.h" #include "Bertl14.h" #include "BertlObjects.h" // nur bei den neuen Bertls // main=2^0 LS ENC 2^2 BusOut boardPow(p30, P1_6, P1_7); void BlinkTask(); Timer t1; int main(void) { boardPow=1; wait_ms(10); InitBertl(); pex.useISR=0; leds=9; pex.ClearLeds(); t1.start(); while(1) { BlinkTask(); // // } return 1; } void BlinkTask() { if( t1.read_ms()>100 ) { // alle 100ms = 10Hz t1.reset(); // timer neu starten pex.ToggleLeds(LED_FL1|LED_FL2|LED_FR1|LED_FR2); } }