Commit Graph

15 Commits

Author SHA1 Message Date
89ec34dc1d Add mgos_barometer API 2018-04-21 15:17:24 +02:00
d693631b70 First stab at generic gyro/mag/accel -- mgos_imu.h 2018-04-18 23:50:23 +02:00
1e1c3087cd Add MPU9250 2018-04-18 22:54:06 +02:00
e4bb9e39cc Add CCS811 driver 2018-04-10 21:36:10 +02:00
d2e64c0f45 Reformat with bcpp
Used commandline: bcpp -i 2 -yq -ya -s -bcl -tbcl $i
2018-04-09 18:30:46 +02:00
0337487a0c Add Copyright headers (AP2.0) 2018-04-03 14:15:56 +02:00
50d59ae313 Finished MCP9808 driver. 2018-04-03 14:09:40 +02:00
62da8aa283 Initial checkin of empty MCP9808 driver 2018-04-03 13:46:08 +02:00
9f0cdbb821 Initial driver for HTU21DF 2018-04-02 22:36:46 +02:00
e4ed4d005d Loop once per 5 seconds.
Clean up CRC8 functions (style, no caps).
2018-04-02 21:50:30 +02:00
97310e3e03 Refactor main.
Only create sensors once, then loop over them with do_si7021() and
do_sht31().
2018-04-02 21:46:54 +02:00
5b0fcadd9f Refactor I2C SMBUS
Add SI7021 chipset, partially done.
2018-04-02 20:38:26 +02:00
2899ee59de Initial (empty) Si7021 driver 2018-04-02 17:59:41 +02:00
b1d92a32a8 Include first driver: SHT31
Make I2C reads blocking w/ timeout
Add SHT31 driver, roughly :)
Fix mg_time() to return a double.
2018-04-02 17:29:13 +02:00
cef7c5107d Mock out mgos_i2c.h to work with Linux. 2018-04-02 13:30:45 +02:00