Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/PicoPeripherals/peripheral_usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ void PeripheralUSB::setup() {

pio_cfg.pin_dp = _DP;
pio_cfg.pinout = (_Order == 0 ? PIO_USB_PINOUT_DPDM : PIO_USB_PINOUT_DMDP);
pio_cfg.sm_tx = 1; // Move TX to PIO0:1, NeoPico is in PIO0:0
// RX and EOP are PIO1:0, PIO1:1
pio_cfg.pio_tx_num = 0; // TX on PIO0
pio_cfg.sm_tx = 0; // PIO0 SM0
pio_cfg.pio_rx_num = 0; // RX + EOP also on PIO0 (single-PIO)
pio_cfg.sm_rx = 1; // PIO0 SM1
pio_cfg.sm_eop = 2; // PIO0 SM2
}
}
2 changes: 1 addition & 1 deletion src/addons/neopicoleds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ void NeoPicoLEDAddon::setup() {
}

// Setup NeoPico ws2812 PIO
neopico.Setup(ledOptions.dataPin, ledCount, static_cast<LEDFormat>(ledOptions.ledFormat), pio0, 0);
neopico.Setup(ledOptions.dataPin, ledCount, static_cast<LEDFormat>(ledOptions.ledFormat), pio1, 0);
neopico.Off(); // turn off everything

// Rewrite this
Expand Down