Custom project for driving a STC3100 sensor

Dependencies:   mbed

Committer:
tommienator
Date:
Sun Oct 29 00:11:17 2017 +0000
Revision:
0:014d4be7a437
Custom project

Who changed what in which revision?

UserRevisionLine numberNew 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 }