Skip to content

Commit

Permalink
Merge pull request #109 from facchinm/pins_unor4_macro
Browse files Browse the repository at this point in the history
Fix pin numbers macros on UNO R4
  • Loading branch information
facchinm authored Aug 30, 2023
2 parents b4c25f7 + 3b5c7ef commit 5101023
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion variants/MINIMA/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
extern "C" unsigned int PINCOUNT_fn();
#endif
#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" {
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 @@ -8,7 +8,7 @@
extern "C" unsigned int PINCOUNT_fn();
#endif
#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

0 comments on commit 5101023

Please sign in to comment.