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
Paramter GrovePi+
Working Voltage 5V
MCU ATMEGA328P
Grove Ports 7 x Digital(5V), 3 x Analog(5V), 3 x I2C(5V)
1 x SERIAL: Connect to ATMEGA328P D0/1(5V)
1 x RPISER: Connect to Raspberry Pi(3.3V), 1 x ISP
Grove-Digital Connect to ATMEGA328P digital pins and transfer to I2C
signal, then through level converter to Raspberry Pi
Grove-Analog Connect to ATMEGA328P analog pins(10bit ADC) and then
transfer to I2C signal, then through level converter to
Raspberry Pi
Grove-I2C Connect through level converter to Raspberry Pi
Inheritance
Implemented types

Constructors

GrovePiPlusHat([int i2cBus = 1])
GrovePiPlusHat.isolate(I2C i2c)

Properties

hashCode → int
The hash code for this object.
no setterinherited
i2c → I2C
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 a pin.
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 given pin.
inherited
fromJson(String json) → IsolateAPI
getFirmwareVersion() → String
Returns the firmware of the hat.
inherited
getHandle() → int
isIsolate() → bool
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 a pin.
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
setHandle(int handle) → void
toJson() → String
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