runli2
Dependencies: mbed
main.cpp
- Committer:
- trivla
- Date:
- 2015-03-16
- Revision:
- 0:622edc672f7f
File content as of revision 0:622edc672f7f:
#include "mbed.h" //Flankenerkennung mit interrupt BusOut lb(P1_13,P1_12,P1_7,P1_6,P1_4,P1_3,P1_1,P1_0,LED4,LED3,LED2,LED1); InterruptIn sw4(P1_16); void OneRunLightStep(); void Sw4ISR() { OneRunLightStep(); } int main() { sw4.rise(Sw4ISR); while(1) { } } void OneRunLightStep() { if(lb==0) lb=1; else lb = lb << 1; }