File eurorack_devkit.h¶
File List > external-docs > libDaisy > src > eurorack_devkit.h
Go to the documentation of this file
Source Code¶
#pragma once
#include "daisy_seed.h"
namespace daisy::eurorack_devkit
{
constexpr size_t kNumPots = 8;
constexpr size_t kNumCVs = 4;
class Hardware
{
public:
Hardware() {}
// SOM
DaisySeed seed;
// Tactile Switches
Switch sw1, sw2;
// Toggle Switches
Switch3 sw3;
Switch sw4;
// Pots
AnalogControl pot[kNumPots];
// Bipolar CV Inputs
AnalogControl cv[kNumCVs];
// Gate Inputs
GateIn gate_in1, gate_in2;
// MIDI
MidiUartHandler midi;
// LEDs
RgbLed led1;
Led led2;
void Init();
void UpdateAllControls();
void SetDacOut(DacHandle::Channel channel, uint16_t code);
void PrintAllControls();
};
} // namespace daisy::eurorack_devkit