sparkfun_qwiicrelay

CircuitPython library for the Sparkfun Qwiic Relay

  • Author(s): Gaston Williams

Implementation Notes

Hardware:

  • This is library is for the SparkFun Qwiic Single Relay.

  • SparkFun sells these at its website: www.sparkfun.com

  • Do you like this library? Help support SparkFun. Buy a board! https://www.sparkfun.com/products/15093

Software and Dependencies:

class sparkfun_qwiicrelay.Sparkfun_QwiicRelay(i2c, address=24, debug=False)

CircuitPython class for the Sparkfun QwiicRelay

Initialize Qwiic Relay for i2c communication.

property connected

Check to see of the relay is available. Returns True if successful.

relay_off()

Turn the relay off.

relay_on()

Turn the relay on.

set_i2c_address(new_address)

Change the i2c address of Relay snd return True if successful.

property status

Return 1 if button pressed between reads. Button status is cleared.

property version

Return the version string for the Relay firmware.