Levi Mariën
/
STC3100
Custom project for driving a STC3100 sensor
main.cpp@0:014d4be7a437, 2017-10-29 (annotated)
- Committer:
- tommienator
- Date:
- Sun Oct 29 00:11:17 2017 +0000
- Revision:
- 0:014d4be7a437
Custom project
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tommienator | 0:014d4be7a437 | 1 | #include "mbed.h" |
tommienator | 0:014d4be7a437 | 2 | |
tommienator | 0:014d4be7a437 | 3 | DigitalOut myled(LED1); |
tommienator | 0:014d4be7a437 | 4 | |
tommienator | 0:014d4be7a437 | 5 | int main() { |
tommienator | 0:014d4be7a437 | 6 | while(1) { |
tommienator | 0:014d4be7a437 | 7 | myled = 1; // LED is ON |
tommienator | 0:014d4be7a437 | 8 | wait(0.2); // 200 ms |
tommienator | 0:014d4be7a437 | 9 | myled = 0; // LED is OFF |
tommienator | 0:014d4be7a437 | 10 | wait(1.0); // 1 sec |
tommienator | 0:014d4be7a437 | 11 | } |
tommienator | 0:014d4be7a437 | 12 | } |