b631bc7326
Add mgos_i2c_bitfields.c
2019-01-09 14:13:08 +01:00
60bf5b82a5
Factor out boards.h -- share it with imu-demo/
2019-01-05 16:03:15 +01:00
031bd34655
Remove unused headers from previous test projects
2019-01-03 21:29:22 +01:00
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
b33daf2981
Move mgos_imu to libs/
2018-04-22 14:18:47 +02:00
38c3cdf27e
Make code -Wall -Wextra -pedantic -Wmissing-prototypes -Wold-style-definition
2018-04-22 14:15:35 +02:00
64fe69d3e3
Introduce 'libs'
...
Recursively search libs/* for source and include dirs
Move mgos_barometer code to its own subdir, in preparation for release
to GitHub.
2018-04-22 14:04:54 +02:00
b9dd5fd2ce
Small changes
2018-04-22 09:47:58 +02:00
e4d908ebf3
Create empty BME280 driver
2018-04-22 08:11:52 +02:00
f4aa4f7844
Add empty MPL3115 driver
2018-04-21 17:55:37 +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
acec109ae8
Rename 'sensor' to 'imu' consistently
2018-04-19 17:52:06 +02:00
37d26eb65f
Move private IMU data into its mgos_imu_internal.h
2018-04-19 15:32:00 +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
aa73394f0d
Add skeleton for HTU21DF driver
2018-04-02 22:18:20 +02:00
38500aa8d4
Add public header documentation.
2018-04-02 22:05:53 +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
27bba32bd9
Remove unimplemented calls
2018-04-02 17:54:39 +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