Browse Source

globals.hh - Add hardware definitions section

main
heck 7 months ago
parent
commit
03ba1dc5c4
  1. 5
      src/globals.hh
  2. 2
      src/main_perkons.cc

5
src/globals.hh

@ -10,6 +10,11 @@ namespace Heck {
namespace dsp = daisysp;
namespace Constants {
namespace Hardware {
constexpr int PIN_BUTTON_RECORD = 28;
}
constexpr int BUFFERSIZE = 4;
constexpr int SAMPLERATE = 48000;
constexpr int TRACK_COUNT = 4;

2
src/main_perkons.cc

@ -200,7 +200,7 @@ namespace Heck {
hw.Init();
hw.StartLog(Constants::Developer::BOOT_WAIT_FOR_LOG);
but_rec.Init(hw.GetPin(28), 0);
but_rec.Init(hw.GetPin(Constants::Hardware::PIN_BUTTON_RECORD), 0);
hw.PrintLine("Setting Blocksize: %i", Constants::BUFFERSIZE);
hw.SetAudioBlockSize(Constants::BUFFERSIZE);

Loading…
Cancel
Save