Skip to content

Fix pin numbers macros on UNO R4 #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2023
Merged
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
2 changes: 1 addition & 1 deletion variants/MINIMA/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Pin count
// ----
#define PINS_COUNT (PINCOUNT_fn())
#define NUM_DIGITAL_PINS (22u)
#define NUM_DIGITAL_PINS (20u)
#define NUM_ANALOG_INPUTS (6u)
#define NUM_ANALOG_OUTPUTS (1u)

Expand Down
5 changes: 5 additions & 0 deletions variants/MINIMA/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ extern "C" const PinMuxCfg_t g_pin_cfg[] = {
{ BSP_IO_PORT_05_PIN_00, P500 }, /* (20) Analog voltage measure pin */
{ BSP_IO_PORT_00_PIN_12, P012 }, /* (21) TX LED */
{ BSP_IO_PORT_00_PIN_13, P013 }, /* (22) RX LED */

{ BSP_IO_PORT_05_PIN_01, P501 }, /* (23) TX on SWD connector */
{ BSP_IO_PORT_05_PIN_02, P502 }, /* (24) RX on SWD connector */
{ BSP_IO_PORT_01_PIN_08, P108 }, /* (25) SWDIO */
{ BSP_IO_PORT_03_PIN_00, P300 }, /* (26) SWCLK */
};

extern "C" const size_t g_pin_cfg_size = sizeof(g_pin_cfg);
Expand Down
2 changes: 1 addition & 1 deletion variants/UNOWIFIR4/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Pin count
// ----
#define PINS_COUNT (PINCOUNT_fn())
#define NUM_DIGITAL_PINS (22u)
#define NUM_DIGITAL_PINS (20u)
#define NUM_ANALOG_INPUTS (6u)
#define NUM_ANALOG_OUTPUTS (1u)

Expand Down