remove unneeded dac.reset() statements
This commit is contained in:
parent
83d33d6641
commit
db6b00dff9
2 changed files with 0 additions and 2 deletions
|
|
@ -106,7 +106,6 @@ class SoundManager:
|
||||||
|
|
||||||
# Initialize TLV320
|
# Initialize TLV320
|
||||||
self.tlv = adafruit_tlv320.TLV320DAC3100(i2c)
|
self.tlv = adafruit_tlv320.TLV320DAC3100(i2c)
|
||||||
self.tlv.reset()
|
|
||||||
|
|
||||||
# set sample rate & bit depth
|
# set sample rate & bit depth
|
||||||
self.tlv.configure_clocks(sample_rate=11025, bit_depth=16)
|
self.tlv.configure_clocks(sample_rate=11025, bit_depth=16)
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ else:
|
||||||
|
|
||||||
if tlv320_present:
|
if tlv320_present:
|
||||||
dac = adafruit_tlv320.TLV320DAC3100(i2c)
|
dac = adafruit_tlv320.TLV320DAC3100(i2c)
|
||||||
dac.reset()
|
|
||||||
|
|
||||||
# set sample rate & bit depth
|
# set sample rate & bit depth
|
||||||
dac.configure_clocks(sample_rate=44100, bit_depth=16)
|
dac.configure_clocks(sample_rate=44100, bit_depth=16)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue