dart_periphery library

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.
CpuArch
Class which holds the CPU architecture of the SoC.
Errno
Helper class for Linux errno.h definitions.
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.
PN532
PN532BaseProtocol
PN532I2CImpl
PN532SpiImpl
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 temperature and humidity sensor with a high accuracy.
SHT31result
SHT31 measured data: temperature and humidity sensor.
SPI
SPI wrapper functions for Linux userspace spidev devices.
Uint<T extends Uint<T>>
Uint16
Uint32
Uint8
Uname
Uname class, container for the Linux uname struct values.

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
CpuArchitecture
Supported CPU architectures
DataBits
Serial number of data bits
DigitalValue
Digital value a GrovePiPlusHat or NanoHatHub pin.
ERRNO
Dart enum representation of the Linux errno.h definitions.
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> - converted only to lower case camel case looks a little strange
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 definition 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

Constants

bme280AlternativeI2Caddress → const int
bme280DefaultI2Caddress → const int
bme280Id → const int
BME280 hardware ID
bme680AlternativeI2Caddress → const int
Alternative I2C address for the sensor.
bme680DefaultI2Caddress → const int
Default I2C address for the sensor.
bmp280Id → const int
BMP280 hardware ID
dartPeripheryVersion → const String
sensorReadRetryCounter → const int
sht31AlternativeI2Caddress → const int
sht31DefaultI2Caddress → const int

Functions

getCperipheryVersion() String
Returns the version of the native c-periphery library.
getFlutterPiArgs() List<String>
Returns the argument list of the running flutter-pi program by reading the /proc/PID/cmdline data. For a non flutter-pi environment an empty list will be returned.
getPID() int
Returns the PID of the running flutter-pi program, -1 for all other platforms.
isFlutterPiEnv() bool
Returns true for a flutter-pi environment.
nativeUname() Uname
Calls the native uname() function.
setCPUarchitecture(CpuArchitecture arch) → void
Bypasses the autodetection of the CPU architecture.
setCustomLibrary(String absolutePath) → void
dart_periphery loads a custom library. See native-libraries for details.
useLocalLibrary([CpuArchitecture arch = CpuArchitecture.undefined]) → void
dart_periphery loads the library from the actual directory. See native-libraries for details.
useSharedLibrary() → void
dart_periphery loads the shared library. See native-libraries for details.
useSharedLibray() → void

Typedefs

ListCompare = bool Function(List, List)
PN532ReadyFunction = bool Function(int attemptCount)