dart_periphery library Null safety
Classes
- BakeBitLedBar
- Helper class for the BakeBit LED bar - see NanoHatHub.ledBarInitExt for details.
- BME280
- Bosch BME280/BMP280 sensor for temperature, pressure and humidity (BME280 only). [...]
- BME280result
- BME280 measured data: temperature, pressure and humidity (BME280 only).
- BME680
- Bosch BME680 sensor for temperature, humidity, pressure and gas sensor (IAQ Indoor air quality). [...]
- BME680result
- BME680 measured data: temperature, pressure, humidity and IAQ sensor.
- Errno
- FeatureSetVersion
- Set of internal SGP30 features
- GestureSensor
- PixArt PAJ7620U2 chip, can recognize 9 basic gestures. [...]
- GPIO
- GPIO wrapper functions for Linux userspace character device gpio-cdev and sysfs GPIOs. [...]
- GPIOconfig
- Configuration class for GPIO.advanced and GPIO.nameAdvanced.
- GPIOreadEvent
- Result of the GPIO.readEvent().
- GroveBaseHat
- SeedStudio Grove Base Hat for Raspberry Pi
- GrovePiPlusHat
- SeedStudio GrovePiPlusHat [...]
- I2C
- I2C wrapper functions for Linux userspace i2c-dev devices. [...]
- I2Cmsg
- I2Cmsg - container for the native NativeI2Cmsg struct.
- Led
- LED wrapper functions for Linux userspace sysfs LEDs.
- MMIO
- MMIO wrapper functions for the Linux userspace /dev/mem device. [...]
- MPU6050
- MPU-6050 Six-Axis (Gyro + Accelerometer) sensor [...]
- NanoHatHub
- Extension hat from FriendlyARM [...]
- NativeI2Cmsg
- Helper class mapped to the C struct i2c_msg
- NativeI2CmsgHelper
- Helper class which stores an array of native 'struct i2c_msg' messages. The user must call NativeI2CmsgHelper.dispose to free the allocated memory.
- PollMultipleEvent
- Helper class for the static method GPIO.pollMultiple. [...]
- PWM
- PWM wrapper functions for Linux userspace sysfs PWMs. [...]
- RawMeasurement
- SGP30 raw data container for H2 and Ethanol
- Serial
- Serial wrapper functions for Linux userspace termios tty devices. [...]
- SerialReadEvent
- Result of a Serial.read operation.
- SGP30
- Sensirion eCO2 gas sensor, an air quality detection sensor. [...]
- SGP30result
- SGP30 measured data: co2Equivalent and totalVOC sensor.
- SHT31
- Sensirion SHT31 temperatur and humidity sensor with a high accuracy. [...]
- SHT31result
- SHT31 measured data: temperature and humidity sensor.
- SPI
- SPI wrapper functions for Linux userspace spidev devices. [...]
Constants
- BME280_ALTERNATIVE_I2C_ADDRESS → const int
-
0x77
- BME280_DEFAULT_I2C_ADDRESS → const int
-
0x76
- BME280_ID → const int
-
BME280 hardware ID
0x60
- BME680_ALTERNATIVE_I2C_ADDRESS → const int
-
Alternative I2C address for the sensor.
0x77
- BME680_DEFAULT_I2C_ADDRESS → const int
-
Default I2C address for the sensor.
0x76
- BMP280_ID → const int
-
BMP280 hardware ID
0x58
- DART_PERIPHERY_VERSION → const String
-
'0.8.23-beta'
- SENSOR_READ_RETRY_COUNTER → const int
-
10
- SHT31_ALTERNATIVE_I2C_ADDRESS → const int
-
0x45
- SHT31_DEFAULT_I2C_ADDRESS → const int
-
0x44
Functions
-
getCperipheryVersion(
) → String - Returns the version of the native c-periphery library.
-
getFlutterPiArgs(
) → List< String> -
isFutterPiEnv(
) → bool -
setCustomLibrary(
String absolutePath) → void - dart_periphery loads a custom library. See native-libraries for details.
-
useLocalLibrary(
) → void - dart_periphery loads the library from the actual directory. See native-libraries for details.
- dart_periphery loads the shared library. See native-libraries for details.
Enums
- Baudrate
- Serial baudrate
- BitOrder
- Bit order of multiple byte data of I2C or SPI devices. This order is defined by manufacturer of the device.
- BME280model
- Supported BME280 models
- DataBits
- Serial number of data bits
- DigitalValue
- Digital value a GrovePiPlusHat or NanoHatHub pin.
- ERNO
- FilterCoefficient
- BME280 IIR Filter coefficient
- FilterSize
- BME680 IIR filter size
- Gesture
- Gesture directions
- GPIObias
- GPIO bias
- GPIOdirection
- GPIO input/output direction
- GPIOdrive
- GPIO drive
- GPIOedge
- GPIO edge
- GPIOerrorCode
- Mapped native GPIO error codes with the same index, but different leading sign.
- GPIOpolling
- Result codes of the GPIO.poll.
- HeaterProfile
- BME680 gas heater profile
- I2CerrorCode
- I2C error codes
- I2CmsgFlags
- I2C native i2c_msg flags from <linux/i2c.h>
- LedBarColor
- LED bar color - see NanoHatHub.ledBarInitExt for details.
- LedBarLed
- LED bar led numeration - see NanoHatHub.ledBarInitExt for details.
- LedErrorCode
- Led error code
- MMIOerrorCode
- MMIO error code
- OperatingMode
- BME280 operation mode
- OversamplingMultiplier
- Oversampling multiplier defintion for BME280, BMP280 and BME680 sensors.
- Parity
- Serial parity
- PinMode
- Pin mode of a GrovePiPlusHat or NanoHatHub pin.
- Polarity
- PWM polarity of the output
- PowerMode
- BME680 power modes
- PWMerrorCode
- PWM error code
- SerialErrorCode
- Serial error codes
- SPImode
- SPI modes
- StandbyDuration
- BME280 inactive duration in standby mode
- StopBits
- Number of Serial stop bits
Exceptions / Errors
- BME280exception
- BME280 exception
- BME680exception
- BME680 exception
- ErrnoNotFound
- GestureSensorException
- GestureSensorException exception
- GPIOexception
- GPIO exception
- I2Cexception
- I2C exception
- LedException
- Led exception
- MMIOexception
- MMIO exception
- MPU6050exception
- MPU6050 exception
- PWMexception
- PWM exception
- SerialException
- Serial exception
- SGP30excpetion
- SGP30 exception
- SHT31excpetion
- SHT31 exception
- SPIexception
- SPI exception