Skip to content

Commit

Permalink
Fix Audio Amp pins for new boards
Browse files Browse the repository at this point in the history
  • Loading branch information
ZodiusInfuser committed Oct 14, 2023
1 parent 420e93a commit 8c3c009
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/pimoroni_yukon/modules/audio_amp.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ def __init__(self):
super().__init__()

def initialise(self, slot, adc1_func, adc2_func):
# Create the "I2C" pin objects
self.__slow_sda = slot.SLOW1
self.__slow_scl = slot.SLOW2

# Create the enable pin object
self.__amp_en = slot.SLOW3
self.__amp_en = slot.SLOW1

# Create the "I2C" pin objects
self.__slow_sda = slot.SLOW2
self.__slow_scl = slot.SLOW3

self.__chip = tca.get_chip(slot.SLOW1)
self.__sda_bit = 1 << tca.get_number(slot.SLOW1)
self.__scl_bit = 1 << tca.get_number(slot.SLOW2)
self.__chip = tca.get_chip(slot.SLOW2)
self.__sda_bit = 1 << tca.get_number(slot.SLOW2)
self.__scl_bit = 1 << tca.get_number(slot.SLOW3)

self.I2S_DATA = slot.FAST1
self.I2S_CLK = slot.FAST2
Expand Down

0 comments on commit 8c3c009

Please sign in to comment.