2021-03-14 08:40:54 +00:00
|
|
|
# My sensor runs Linux!
|
|
|
|
|
|
|
|
This is the source repository for a simple system monitor program,
|
|
|
|
|
|
|
|
which runs on Linux.
|
|
|
|
|
|
|
|
## Supported sensors
|
|
|
|
|
2021-07-06 17:40:58 +00:00
|
|
|
- [x] Bosch SensorTec BME280 digital temperature/humidity/pressure sensor
|
2021-03-14 08:40:54 +00:00
|
|
|
- [ ] AMS(Sciosense) CCS811 eTVOC sensor
|
|
|
|
- [ ] MH-Z19 series NDIR eCO2 sensor
|
|
|
|
- [ ] TDK InvenSense 6-Axis gyro/accelerometer
|
|
|
|
- [ ] General GPIO based water detector sensors
|
|
|
|
|
|
|
|
## Other supported devices
|
|
|
|
|
2021-06-21 17:34:46 +00:00
|
|
|
- [x] 2.0" IPS TFT LCD(320px * 240px), driver IC: ST7789VW
|
2021-07-05 16:06:29 +00:00
|
|
|
- [x] General GPIO based buttons
|
2021-03-14 08:40:54 +00:00
|
|
|
- [ ] Genetal GPIO based LEDs
|
|
|
|
|
2021-06-21 17:34:46 +00:00
|
|
|
## Drivers implemented
|
|
|
|
- [x] GPIO driver
|
|
|
|
- [x] SPI device driver
|
2021-07-05 16:06:29 +00:00
|
|
|
- [x] Config K-V driver
|
2021-06-21 17:34:46 +00:00
|
|
|
|
|
|
|
## Third party libraries used
|
2021-03-14 08:40:54 +00:00
|
|
|
|
|
|
|
- [x] LittleVGL
|
|
|
|
- [ ] mosquitto
|
2021-03-18 15:50:37 +00:00
|
|
|
- [x] libgpiod
|
2021-07-05 16:06:29 +00:00
|
|
|
- [x] libconfig
|
|
|
|
- [x] libpthread
|
2021-03-14 08:40:54 +00:00
|
|
|
- [ ] libiio
|
|
|
|
|
|
|
|
## How to compile
|
|
|
|
|
|
|
|
* Native:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
make -j${nproc}
|
|
|
|
```
|
|
|
|
|
|
|
|
* Cross:
|
|
|
|
```bash
|
|
|
|
mkdir build && cd build
|
2021-03-14 13:59:07 +00:00
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE_NAME} .. # Replace to yours
|
2021-03-14 08:40:54 +00:00
|
|
|
make -j${nproc}
|
|
|
|
```
|