diff options
author | dakkar <dakkar@thenautilus.net> | 2020-08-22 11:08:30 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2020-08-22 11:08:30 +0100 |
commit | 461b9309005fa11f3862f4095b759e8f3708348f (patch) | |
tree | f370e33fc15e02fd05ca38f8d5989824ed8c7ec5 | |
parent | actual notes (diff) | |
download | lego-piano-461b9309005fa11f3862f4095b759e8f3708348f.tar.gz lego-piano-461b9309005fa11f3862f4095b759e8f3708348f.tar.bz2 lego-piano-461b9309005fa11f3862f4095b759e8f3708348f.zip |
move amp setup together
-rw-r--r-- | esp32/lego-piano.ino | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/esp32/lego-piano.ino b/esp32/lego-piano.ino index 2dfa916..3cd5986 100644 --- a/esp32/lego-piano.ino +++ b/esp32/lego-piano.ino @@ -31,6 +31,8 @@ void setup() { Serial.begin(115200); pinMode(ampEnable, OUTPUT); + digitalWrite(ampEnable, LOW); + dac_i2s_disable(); dac_output_enable(DAC_CHANNEL_1); @@ -43,7 +45,6 @@ void setup() { currentLed = 0; lastSeen = 100; - digitalWrite(ampEnable, LOW); } void play(uint32_t freq) { |