Skip to content

File pedal_devkit.h

File List > external-docs > libDaisy > src > pedal_devkit.h

Go to the documentation of this file

Source Code

#pragma once

#include "daisy_seed.h"

namespace daisy::pedal_devkit
{
constexpr size_t kNumPots = 6;

class Hardware
{
  public:
    Hardware() {}

    // SOM
    DaisySeed seed;


    // Analog Inputs
    AnalogControl pot[kNumPots];
    AnalogControl expression;

    // Toggles
    Switch3 sw1;
    Switch  sw2, sw3;

    // Tactile Switches
    Switch sw4, sw5;

    // Footswitches
    Switch fsw_1, fsw_2;

    // SD Card detection
    Switch sd_detect;

    // LEDs
    Led    led1;
    RgbLed led2;

    // 5-Pin DIN MIDI via UART
    daisy::MidiUartHandler midi;

    void Init();

    void UpdateAllControls();

    void PrintAllControls();
};
} // namespace daisy::pedal_devkit