GrovePiPlusHat class
SeedStudio GrovePiPlusHat
Do not use this hardware
- UART is not working correct with some devices e.g. CozIR CO2 sensor
- Problems using more than 2 I2C devices
- Problems using I2C and SPI bus at the same time
Constructors
- GrovePiPlusHat([int i2cBus = 1])
Properties
Methods
-
analogRead(
int pin) → int -
Reads an analog value from a given
pin
.inherited -
analogWrite(
int pin, int value) → void -
Writes an analog
value
to apin
.inherited -
autoWait(
) → void -
Ensures that a delay of at last
delay
ms go by.inherited -
digitalRead(
int pin) → DigitalValue -
Reads a DigitalValue from a given
pin
.inherited -
digitalWrite(
int pin, DigitalValue value) → void -
Writes a digital
value
to a givenpin
.inherited -
getFirmwareVersion(
) → String -
Returns the firmware of the hat.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pinMode(
int pin, PinMode mode) → void -
Sets the pin
mode
for apin
.inherited -
readI2Cblock(
int len) → List< int> -
Reads a byte array from the I2C bus.
inherited
-
setAutoWait(
bool flag) → void -
Enable or disables the auto wait.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeI2Cblock(
List< int> data) → void -
Writes a byte array to the I2C bus.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited