Commit Graph

25 Commits

Author SHA1 Message Date
34cc6d5de2 First stab at autogen.sh 2019-01-03 20:47:34 +01:00
1db8c1a0bf Refactor framework -- point to a tests/* directory for the user supplied tests 2019-01-03 20:12:04 +01:00
449d51aae8 Some dev changes
- Only have 1 baro
- Add MPU9250 beginnings
- print type of baro
- add i2c_dumpregs() to the i2c_scanner()
2018-05-13 12:53:18 +02:00
38c3cdf27e Make code -Wall -Wextra -pedantic -Wmissing-prototypes -Wold-style-definition 2018-04-22 14:15:35 +02:00
55c7e78427 Single-line baro logging 2018-04-22 12:53:52 +02:00
e4d908ebf3 Create empty BME280 driver 2018-04-22 08:11:52 +02:00
b2f71583a1 Set timeout of 1s on reads 2018-04-21 23:33:58 +02:00
38fca7c650 Add MPL3115 driver; It's a bit slow (takes ~1s for DataReady to be set), should take a look 2018-04-21 23:18:43 +02:00
d142cb37d3 Add finished MPL115 barometer 2018-04-21 17:47:56 +02:00
9d9cd1d00a Add Read Cache and Stats
- baro.cache_ttl_ms avoids multiple reads
- by default, cache is off (cache_ttl_ms=0)
- stats are updated (similar to how prometheus-sensors does this)
2018-04-21 15:39:57 +02:00
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