geh sterben, beschreibung!
Dependencies: mbed
main.cpp
- Committer:
- ladner
- Date:
- 2016-01-14
- Revision:
- 1:6381133904a1
- Parent:
- 0:d30dfdbac0fe
File content as of revision 1:6381133904a1:
#include "mbed.h" I2C i2c(P0_5,P0_4); Serial port(P0_19,P0_18); BusOut myled(P1_8,P1_9,P1_10,P1_11,P1_0,P1_1,P1_3,P1_4,P1_6,P1_7,P1_12,P1_13); AnalogIn ldr(P0_12); AnalogIn poti(P0_11); BusOut rgb(P0_9,P1_15,P0_21); BusIn btn(P1_16,P0_23,P0_10,P0_15); int main() { rgb=7; while(1) { myled = 1<<(int)(ldr*12); } }