Skip to content

Commit

Permalink
Update DaisyPatch to use GPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
stellar-aria committed May 29, 2023
1 parent 8510083 commit 28b62c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/daisy_patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/daisy_patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class DaisyPatch
OledDisplay<SSD130x4WireSpi128x64Driver> display; /**< & */

// TODO: Add class for Gate output
dsy_gpio gate_output; /**< & */
GPIO gate_output; /**< & */


private:
Expand Down

0 comments on commit 28b62c3

Please sign in to comment.