Skip to content

Instantly share code, notes, and snippets.

@RZRZR
RZRZR / color.py
Last active November 14, 2019 15:09 — forked from bennuttall/color.py
import time
from gpiozero import SPIDevice
from colorzero import Color, Hue
class Apa102Pixel(SPIDevice):
def __init__(self, *args, **kwargs):
super(Apa102Pixel, self).__init__(*args, **kwargs)
self._brightness = 255.0
self._value = (0, 0, 0)

#Explorer HAT Pro, Motors, Servos and Steppers

Find this Gist at: tiny.cc/explorerhat

The Motor driver on Explorer HAT Pro can not only drive motors, but a stepper motor too. And just like the Pibrella the outputs can also drive a motor or four, or another stepper.

Explorer HATs outputs sink to ground, meaning that you need to connect whatever you're driving between 5V and the output

#MOTORS