Sandro Djuric
/
Test1_SandroDjuric
funktionen
main.cpp@2:5b052d18a113, 2020-01-13 (annotated)
- Committer:
- sandrodjuric
- Date:
- Mon Jan 13 17:08:24 2020 +0000
- Revision:
- 2:5b052d18a113
- Parent:
- 1:2beb3ea0c40f
- Child:
- 3:57ccaba4a24d
leds und button def
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sandrodjuric | 0:8c6f1d850a3c | 1 | #include "mbed.h" |
sandrodjuric | 0:8c6f1d850a3c | 2 | |
sandrodjuric | 2:5b052d18a113 | 3 | #define BUTTON1 p14 |
sandrodjuric | 2:5b052d18a113 | 4 | |
sandrodjuric | 1:2beb3ea0c40f | 5 | int modifyBit(int x, unsigned char position, bool State); |
sandrodjuric | 1:2beb3ea0c40f | 6 | int lauflicht(bool richtung, int time, int &anz); |
sandrodjuric | 1:2beb3ea0c40f | 7 | void nibbleLeds(int value); |
sandrodjuric | 2:5b052d18a113 | 8 | void printb(uint8_t x); |
sandrodjuric | 2:5b052d18a113 | 9 | |
sandrodjuric | 2:5b052d18a113 | 10 | BusOut myleds(LED1,LED2,LED3,LED4); |
sandrodjuric | 2:5b052d18a113 | 11 | DigitalIn button(BUTTON1); |
sandrodjuric | 2:5b052d18a113 | 12 | |
sandrodjuric | 2:5b052d18a113 | 13 | const int INIT = 0x03; |