This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer