Riad_ Bajraktarevic
/
Bajraktarevic_Test
Main
main.cpp@0:7925301ed8e4, 2020-01-13 (annotated)
- Committer:
- riad
- Date:
- Mon Jan 13 17:10:21 2020 +0000
- Revision:
- 0:7925301ed8e4
- Child:
- 1:a3d6a365dc15
Main
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
riad | 0:7925301ed8e4 | 1 | #include "mbed.h" |
riad | 0:7925301ed8e4 | 2 | #define BUTTON1 p14 |
riad | 0:7925301ed8e4 | 3 | #define BUTTON! A1 |
riad | 0:7925301ed8e4 | 4 | |
riad | 0:7925301ed8e4 | 5 | int modifyBit(int x, unsingned char position, bool State); |
riad | 0:7925301ed8e4 | 6 | int lauflicht(bool richtung, int time, int &anz); |
riad | 0:7925301ed8e4 | 7 | void nibbleLeds(int value); |
riad | 0:7925301ed8e4 | 8 | void printb(uint8_t x); |
riad | 0:7925301ed8e4 | 9 | |
riad | 0:7925301ed8e4 | 10 | |
riad | 0:7925301ed8e4 | 11 | BusOut myleds(LED1,LED2,LED3,LED4); |
riad | 0:7925301ed8e4 | 12 | DigitalIn button(BUTTON1); |
riad | 0:7925301ed8e4 | 13 | |
riad | 0:7925301ed8e4 | 14 | const int INIT = 0x03; |
riad | 0:7925301ed8e4 | 15 | |
riad | 0:7925301ed8e4 | 16 | int main () { |
riad | 0:7925301ed8e4 | 17 | int anzahl, anz; |
riad | 0:7925301ed8e4 | 18 | uint8_t value = INIT; |
riad | 0:7925301ed8e4 | 19 | |
riad | 0:7925301ed8e4 | 20 | |
riad | 0:7925301ed8e4 | 21 | |
riad | 0:7925301ed8e4 | 22 | |
riad | 0:7925301ed8e4 | 23 | |
riad | 0:7925301ed8e4 | 24 | |
riad | 0:7925301ed8e4 | 25 | |
riad | 0:7925301ed8e4 | 26 | } |