Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Problems with the SD Drive or some conflicting Buttons

Phil Schatzmann edited this page Jan 27, 2022 · 32 revisions

The working of the SD drive depends on the dip switches. Please check the documentation of your board. Usually all switches must be set to on or off! And do not forget to reboot your board after changing the settings. Please note that an active SD drive might also deactivate some of the buttons because the same GPIOs are used.

You can also switch off the automatic SD initialization:

  • At compile time: (e.g. in the AudioKitSettings.h) by defining AUDIOKIT_SETUP_SD to 0 if you do not intent to use the SD card.
  • At runtime: by setting the sd_active to false in the AudioKitConfig that is passed to the begin method. Example:
  auto cfg = kit.defaultConfig();
  cfg.bits_per_sample = 16;
  cfg.channels = 1;
  cfg.sample_rate = 8000;
  cfg.sd_active = false;
  kit.begin(cfg);
Clone this wiki locally