Custom project for driving a STC3100 sensor

Dependencies:   mbed

Fork of STC3100 by Levi Mariën

Committer:
tommienator
Date:
Sat Nov 04 13:07:17 2017 +0000
Revision:
1:dbc1e56be2cc
Parent:
0:014d4be7a437
stc3100

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tommienator 0:014d4be7a437 1 #include "mbed.h"
tommienator 1:dbc1e56be2cc 2 #include "STC3100Sensor.h"
tommienator 0:014d4be7a437 3
tommienator 0:014d4be7a437 4 int main() {
tommienator 1:dbc1e56be2cc 5
tommienator 1:dbc1e56be2cc 6 stc3100Configure();
tommienator 1:dbc1e56be2cc 7
tommienator 0:014d4be7a437 8 while(1) {
tommienator 1:dbc1e56be2cc 9
tommienator 1:dbc1e56be2cc 10 printf("%f\n", getVoltage());
tommienator 1:dbc1e56be2cc 11
tommienator 0:014d4be7a437 12 }
tommienator 0:014d4be7a437 13 }