Skip to content

Commit

Permalink
Fix high GPIO outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBell committed Oct 4, 2023
1 parent cb2602f commit ef28f13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "hardware/watchdog.h"
#include "pico/bootrom.h"
#include "hardware/structs/pads_qspi.h"
#include "hardware/structs/ioqspi.h"
#include "hardware/adc.h"

#include "i2c_interface.hpp"
Expand Down Expand Up @@ -294,7 +295,8 @@ int main() {
gpio_disable_pulls(PIN_ADC);
sio_hw->gpio_hi_oe = 0;
for (uint i = 0; i < NUM_QSPI_GPIOS; ++i) {
pads_qspi_hw->io[i] = 0x62;
pads_qspi_hw->io[i] = 0x52;
ioqspi_hw->io[i].ctrl = 5;
}

// Setup heartbeat LED
Expand Down

0 comments on commit ef28f13

Please sign in to comment.