[riot-notifications] [RIOT-OS/RIOT] driver/sgp30: initial import (#16222)

Francisco notifications at github.com
Wed Apr 7 19:08:04 CEST 2021


@kaspar030 I hope I got everything this time, tested again:


- run basic test `make -C tests/driver_sgp30/ flash term`

```
2021-04-07 18:59:36,402 # Device is not yet ready
2021-04-07 18:59:36,505 # Device is not yet ready
2021-04-07 18:59:36,608 # Device is not yet ready
2021-04-07 18:59:36,710 # TVOC [ppb]: 0
2021-04-07 18:59:36,711 # eCO2 [ppm]: 400
2021-04-07 18:59:36,715 # +-------------------------------------+
2021-04-07 18:59:36,817 # TVOC [ppb]: 0
2021-04-07 18:59:36,818 # eCO2 [ppm]: 400
2021-04-07 18:59:36,822 # +-------------------------------------+
2021-04-07 18:59:36,924 # TVOC [ppb]: 0
2021-04-07 18:59:36,925 # eCO2 [ppm]: 400
2021-04-07 18:59:36,929 # +-------------------------------------+
...
2021-04-07 19:01:34,979 # +-------------------------------------+
2021-04-07 19:01:35,081 # TVOC [ppb]: 4
2021-04-07 19:01:35,083 # eCO2 [ppm]: 413
2021-04-07 19:01:35,086 # +-------------------------------------+
2021-04-07 19:01:35,188 # TVOC [ppb]: 4
2021-04-07 19:01:35,190 # eCO2 [ppm]: 413
2021-04-07 19:01:35,193 # +-------------------------------------+
2021-04-07 19:01:35,295 # TVOC [ppb]: 4
2021-04-07 19:01:35,297 # eCO2 [ppm]: 413
2021-04-07 19:01:35,300 # +-------------------------------------+
2021-04-07 19:01:35,402 # TVOC [ppb]: 4
2021-04-07 19:01:35,404 # eCO2 [ppm]: 413
2021-04-07 19:01:35,407 # +-------------------------------------+
2021-04-07 19:01:35,510 # TVOC [ppb]: 4
2021-04-07 19:01:35,511 # eCO2 [ppm]: 413
2021-04-07 19:01:35,514 # +-------------------------------------+
2021-04-07 19:01:35,617 # TVOC [ppb]: 4
2021-04-07 19:01:35,618 # eCO2 [ppm]: 413
2021-04-07 19:01:35,622 # +-------------------------------------+
```

- no strict mode `DISABLE_MODULE=sgp30_strict make -C tests/driver_sgp30/ flash term` (values change more often since there is no strict 1s sampling)

```
2021-04-07 19:02:44,357 # +-------------------------------------+
2021-04-07 19:02:44,472 # TVOC [ppb]: 0
2021-04-07 19:02:44,474 # eCO2 [ppm]: 404
2021-04-07 19:02:44,477 # +-------------------------------------+
2021-04-07 19:02:44,592 # TVOC [ppb]: 3
2021-04-07 19:02:44,594 # eCO2 [ppm]: 400
2021-04-07 19:02:44,597 # +-------------------------------------+
2021-04-07 19:02:44,713 # TVOC [ppb]: 8
2021-04-07 19:02:44,714 # eCO2 [ppm]: 402
2021-04-07 19:02:44,718 # +-------------------------------------+
2021-04-07 19:02:44,833 # TVOC [ppb]: 6
2021-04-07 19:02:44,834 # eCO2 [ppm]: 400
2021-04-07 19:02:44,838 # +-------------------------------------+
2021-04-07 19:02:44,953 # TVOC [ppb]: 2
2021-04-07 19:02:44,954 # eCO2 [ppm]: 400
2021-04-07 19:02:44,958 # +-------------------------------------+
2021-04-07 19:02:45,073 # TVOC [ppb]: 2
2021-04-07 19:02:45,075 # eCO2 [ppm]: 404
2021-04-07 19:02:45,078 # +-------------------------------------+
2021-04-07 19:02:45,193 # TVOC [ppb]: 4
2021-04-07 19:02:45,195 # eCO2 [ppm]: 400
2021-04-07 19:02:45,198 # +-------------------------------------+
2021-04-07 19:02:45,313 # TVOC [ppb]: 5
2021-04-07 19:02:45,315 # eCO2 [ppm]: 411
2021-04-07 19:02:45,318 # +-------------------------------------+
2021-04-07 19:02:45,433 # TVOC [ppb]: 8
2021-04-07 19:02:45,435 # eCO2 [ppm]: 407
2021-04-07 19:02:45,438 # +-------------------------------------+
2021-04-07 19:02:45,553 # TVOC [ppb]: 2
2021-04-07 19:02:45,555 # eCO2 [ppm]: 403
2021-04-07 19:02:45,558 # +-------------------------------------+
2021-04-07 19:02:45,674 # TVOC [ppb]: 5
2021-04-07 19:02:45,675 # eCO2 [ppm]: 406
2021-04-07 19:02:45,679 # +-------------------------------------+
```

- test with saul

```
2021-04-07 19:06:25,179 # ##########################
2021-04-07 19:06:26,163 # 
2021-04-07 19:06:26,166 # Dev: LED(orange)	Type: ACT_SWITCH
2021-04-07 19:06:26,168 # Data:	              0 
2021-04-07 19:06:26,168 # 
2021-04-07 19:06:26,171 # Dev: Button(SW0)	Type: SENSE_BTN
2021-04-07 19:06:26,173 # Data:	              0 
2021-04-07 19:06:26,173 # 
2021-04-07 19:06:26,176 # Dev: sgp30	Type: SENSE_CO2
2021-04-07 19:06:26,178 # Unable to display data object
2021-04-07 19:06:26,179 # 
2021-04-07 19:06:26,181 # Dev: sgp30	Type: SENSE_TVOC
2021-04-07 19:06:26,184 # Unable to display data object
2021-04-07 19:06:26,184 # 
2021-04-07 19:06:26,186 # ##########################
2021-04-07 19:06:27,176 # 
2021-04-07 19:06:27,179 # Dev: LED(orange)	Type: ACT_SWITCH
2021-04-07 19:06:27,181 # Data:	              0 
2021-04-07 19:06:27,181 # 
2021-04-07 19:06:27,184 # Dev: Button(SW0)	Type: SENSE_BTN
2021-04-07 19:06:27,186 # Data:	              0 
2021-04-07 19:06:27,186 # 
2021-04-07 19:06:27,189 # Dev: sgp30	Type: SENSE_CO2
2021-04-07 19:06:27,192 # Data:	            400 ppm
2021-04-07 19:06:27,192 # 
2021-04-07 19:06:27,194 # Dev: sgp30	Type: SENSE_TVOC
2021-04-07 19:06:27,196 # Data:	              0 ppb
2021-04-07 19:06:27,197 # 
2021-04-07 19:06:27,199 # ##########################
2021-04-07 19:06:28,177 # 
2021-04-07 19:06:28,179 # Dev: LED(orange)	Type: ACT_SWITCH
2021-04-07 19:06:28,182 # Data:	              0 
2021-04-07 19:06:28,182 # 
2021-04-07 19:06:28,198 # Dev: Button(SW0)	Type: SENSE_BTN
2021-04-07 19:06:28,200 # Data:	              0 
2021-04-07 19:06:28,200 # 
2021-04-07 19:06:28,202 # Dev: sgp30	Type: SENSE_CO2
2021-04-07 19:06:28,205 # Data:	            400 ppm
2021-04-07 19:06:28,205 # 
2021-04-07 19:06:28,208 # Dev: sgp30	Type: SENSE_TVOC
2021-04-07 19:06:28,210 # Data:	              0 ppb
2021-04-07 19:06:28,210 # 
2021-04-07 19:06:28,212 # ##########################

```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16222#issuecomment-815078406
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210407/97ac93b5/attachment-0001.htm>


More information about the notifications mailing list