Skip to content

Commit 4aa8737

Browse files
authored
Update picocan.h
Fix init error
1 parent 31fbc36 commit 4aa8737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Pico/picocan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ void OlcbCanClass::init() {
104104
uint32_t pio_num = 0;
105105
uint32_t sys_clock = 125000000UL;
106106
uint32_t bitrate = 125000UL;
107-
gpio_rx = 27; // rxpin
108-
gpio_tx = 28; // txpin
107+
gpio_rx = PICO_2040_RX_PIN; // rxpin
108+
gpio_tx = PICO_2040_TX_PIN; // txpin
109109
// Setup canbus
110110
can2040_setup(pcan, pio_num);
111111
can2040_callback_config(pcan, can2040_callback);

0 commit comments

Comments
 (0)