LoRa_Node_STM32F103C8T6
Dependencies: mbed mbed-STM32F103C8T6 OneWireCRC_LoRa_Node SX1276Lib_LoRa_Node
main.cpp@0:cc04364f049a, 2018-04-19 (annotated)
- Committer:
- lukas_formanek
- Date:
- Thu Apr 19 14:09:56 2018 +0000
- Revision:
- 0:cc04364f049a
- Child:
- 1:a54ff5e2c2f3
19.4.2018
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lukas_formanek | 0:cc04364f049a | 1 | #include "mbed.h" |
lukas_formanek | 0:cc04364f049a | 2 | |
lukas_formanek | 0:cc04364f049a | 3 | DigitalOut myled(LED1); |
lukas_formanek | 0:cc04364f049a | 4 | |
lukas_formanek | 0:cc04364f049a | 5 | int main() { |
lukas_formanek | 0:cc04364f049a | 6 | while(1) { |
lukas_formanek | 0:cc04364f049a | 7 | myled = 1; // LED is ON |
lukas_formanek | 0:cc04364f049a | 8 | wait(0.2); // 200 ms |
lukas_formanek | 0:cc04364f049a | 9 | myled = 0; // LED is OFF |
lukas_formanek | 0:cc04364f049a | 10 | wait(1.0); // 1 sec |
lukas_formanek | 0:cc04364f049a | 11 | } |
lukas_formanek | 0:cc04364f049a | 12 | } |