- Download the corresponding release
- Load the
.zip
with Sketch → Include Library → Add .ZIP Library
The constructor of the OPCN3 class.
uint8_t pinSelect
: The number of the ss pin.
uint32_t speedSelect
: The speed in Hz (default 500000
)
Setup for the spi connection.
Calls begin()
. Prints all status information. Turns on Fan and Laser. Sets mode to High Gain. Resets Histogramm.
Returns DACandPowerStatus
object.
Turns fan on/off.
bool status
: If true
turns on fan. If false
turns fan off.
Returns FanDigitalPotShutdownState
object.
Turns laser on/off.
bool status
: If true
turns on laser. If false
turns laser off.
Returns LaserDigitalPotShutdownState
object.
TODO
Turns laser on/off.
bool status
: If true
set high gain. If false
set low gain.
Returns HighLowGainState
object.
Returns HistogramData
object.
Returns SerialNumber
object.
Returns ConfigurationVariables
object.
Resets the histogram.
Returns a bool
which indicates, if the reset was successfully.
Property | Type | Description |
---|---|---|
binCounts | uint16_t[24] |
Array of all bin counts |
pm1 | float |
PM 1 value |
pm2_5 | float |
PM 2.5 value |
pm10 | float |
PM 10 value |
Returns the temperature in Celsius.
Returns the temperature in Fahrenheit.
Returns the humidity in percents.