Skip to content

Instantly share code, notes, and snippets.

View IrregularShed's full-sized avatar
🤦‍♂️
Remember the good old days, when we had a future?

Steve Anderson IrregularShed

🤦‍♂️
Remember the good old days, when we had a future?
View GitHub Profile
@IrregularShed
IrregularShed / pt2258.py
Created September 12, 2023 17:18
CircuitPython PT2258 control
import time
import board
from adafruit_bus_device.i2c_device import I2CDevice
i2c = board.I2C() # uses board.SCL and board.SDA
pt2258 = I2CDevice(i2c, 0x44)
# define CHANNEL1_VOLUME_STEP_01 0x90
# define CHANNEL1_VOLUME_STEP_10 0x80
# define CHANNEL2_VOLUME_STEP_01 0x50