From 28b62c34202c3c593c90ec26a9c860750299525e Mon Sep 17 00:00:00 2001 From: Katherine Whitlock Date: Sat, 27 May 2023 19:22:45 -0400 Subject: [PATCH] Update DaisyPatch to use GPIO --- src/daisy_patch.cpp | 5 +---- src/daisy_patch.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/daisy_patch.cpp b/src/daisy_patch.cpp index 6e070a29b..cf430575e 100644 --- a/src/daisy_patch.cpp +++ b/src/daisy_patch.cpp @@ -286,10 +286,7 @@ void DaisyPatch::InitEncoder() void DaisyPatch::InitGates() { // Gate Output - gate_output.pin = PIN_GATE_OUT; - gate_output.mode = DSY_GPIO_MODE_OUTPUT_PP; - gate_output.pull = DSY_GPIO_NOPULL; - dsy_gpio_init(&gate_output); + gate_output.Init(PIN_GATE_OUT, GPIO::Mode::OUTPUT); // Gate Inputs gate_input[GATE_IN_1].Init(PIN_GATE_IN_1); diff --git a/src/daisy_patch.h b/src/daisy_patch.h index 68b16c500..4988040d6 100644 --- a/src/daisy_patch.h +++ b/src/daisy_patch.h @@ -122,7 +122,7 @@ class DaisyPatch OledDisplay display; /**< & */ // TODO: Add class for Gate output - dsy_gpio gate_output; /**< & */ + GPIO gate_output; /**< & */ private: