Starting with the plotter example, I wanted to add a sensor, not on the board. Using a PM2.5 external air quality sensor, I got it to plot, but I had to use the _i2c internal object of the clue object. First I want to suggest that the _i2c object be a public object. I know in reality it's just the _ but it might be useful to have it in the documentation that that's how you do it.
And the second question is, I imagine someone might find this useful if just to see how it's done, does adafruit allow PR's on examples?
For anyone curious, i instantiated the pm25 object with:
pm25 = PM25_I2C(clue._i2c, None)
then just read it with:
aqdata = pm25.read()
PM2.5 Sensor with Clue Plotter example (CircuitP:ython)
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jbritton
- Posts: 3
- Joined: Sat Aug 07, 2010 12:32 am
- kevinjwalters
- Posts: 1025
- Joined: Sun Oct 01, 2017 3:15 pm
Re: PM2.5 Sensor with Clue Plotter example (CircuitP:ython)
You could describe it and:
- post it to somewhere like ADABOX! Show us what you made! or
- add it to the Python for Microcontrollers Newsletter (contributions via PRs to https://github.com/adafruit/circuitpyth ... newsletter) or
- show it on Show and Tell (YouTube).
Please be positive and constructive with your questions and comments.