[riot-notifications] [RIOT-OS/RIOT] drivers: add gp2y10xx dust sensor (#15445)

Jean Pierre Dudey notifications at github.com
Mon Nov 16 11:13:36 CET 2020


@jeandudey commented on this pull request.



> +        _iled_on(dev);
+        xtimer_usleep(ILED_PULSE_WAIT_US);

Changin the iled_on/off out of the loop changes the output a little bit:

Current one:

```
2020-11-16 11:11:33,532 # Dust density 90 ug/m3
2020-11-16 11:11:33,771 # Dust density 85 ug/m3
2020-11-16 11:11:34,028 # Dust density 88 ug/m3
2020-11-16 11:11:34,283 # Dust density 83 ug/m3
2020-11-16 11:11:34,539 # Dust density 81 ug/m3
2020-11-16 11:11:34,796 # Dust density 90 ug/m3
```

Out of the loop:

```
2020-11-16 11:10:47,043 # Dust density 0 ug/m3
2020-11-16 11:10:47,299 # Dust density 424 ug/m3
2020-11-16 11:10:47,539 # Dust density 455 ug/m3
2020-11-16 11:10:47,795 # Dust density 424 ug/m3
2020-11-16 11:10:48,051 # Dust density 440 ug/m3
2020-11-16 11:10:48,291 # Dust density 448 ug/m3
2020-11-16 11:10:48,548 # Dust density 429 ug/m3
2020-11-16 11:10:48,803 # Dust density 435 ug/m3
2020-11-16 11:10:49,043 # Dust density 426 ug/m3
2020-11-16 11:10:49,299 # Dust density 451 ug/m3
```

-- 
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/15445#discussion_r524071722
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201116/513bcf45/attachment.htm>


More information about the notifications mailing list