Skip to content

Commit

Permalink
Add define to compile different variants
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge committed Dec 17, 2024
1 parent 0aa56cf commit 97e71ba
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Software/GuitarPedal/guitar_pedal.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "Effect-Modules/modulated_tremolo_module.h"
#include "Hardware-Modules/guitar_pedal_125b.h"
#include "daisysp.h"
#include "guitar_pedal_storage.h"
#include <string.h>
Expand All @@ -23,11 +22,28 @@ using namespace daisy;
using namespace daisysp;
using namespace bkshepherd;

// This can be set to false if your HW only has a single footswitch.
constexpr bool has_alternate_footswitch = true;
#define VARIANT_125B
// #define VARIANT_1590B
// #define VARIANT_1590B_SMD
// #define VARIANT_TERRARIUM

// Hardware Interface
#if defined(VARIANT_TERRARIUM)
#include "Hardware-Modules/guitar_pedal_terrarium.h"
constexpr bool has_alternate_footswitch = true;
GuitarPedalTerrarium hardware;
#elif defined(VARIANT_1590B)
#include "Hardware-Modules/guitar_pedal_1590b.h"
constexpr bool has_alternate_footswitch = false;
GuitarPedal1590B hardware;
#elif defined(VARIANT_1590B_SMD)
#include "Hardware-Modules/guitar_pedal_1590b-SMD.h"
constexpr bool has_alternate_footswitch = false;
GuitarPedal1590BSMD hardware;
#else
#include "Hardware-Modules/guitar_pedal_125b.h"
constexpr bool has_alternate_footswitch = true;
GuitarPedal125B hardware;
#endif

// Persistant Storage
PersistentStorage<Settings> storage(hardware.seed.qspi);
Expand Down

0 comments on commit 97e71ba

Please sign in to comment.