diff options
Diffstat (limited to 'esp32/lego-piano.ino')
-rw-r--r-- | esp32/lego-piano.ino | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/esp32/lego-piano.ino b/esp32/lego-piano.ino index 8991f07..73dce79 100644 --- a/esp32/lego-piano.ino +++ b/esp32/lego-piano.ino @@ -40,7 +40,7 @@ const int ampEnable = 32; const int octave_shift = 2; -const int sampleRate = 8000; +const int sampleRate = 11025; char pressed[row_count*col_count] = { 0 }; @@ -69,7 +69,6 @@ void setup() { i2s_driver_install(i2sPort, &i2s_config, 0, NULL); i2s_set_dac_mode(I2S_DAC_CHANNEL_RIGHT_EN); // only dac1 - i2s_set_sample_rates(i2sPort, sampleRate); // ?? for (int i=0;i<row_count;++i) { pinMode(rows[i], OUTPUT|PULLUP); |