I designed a custom top PCB with an arduino pro mini, and used pin 4 for one of the encoder inputs. That didn't work out of the box, because pin 4 appeared to be stuck high. It's not used in the schematic and also not defined in the header block with pin numbers. This was hard to track down, but:
The constructor used for the OLED display is deprecated (as per adafruit's documentation). It uses a reset pin, and the reset pin is defined as pin 4 in the OLED part of the spot welder header file (you don't have the bare source file in the repo so I can't link to it).
The correct constructor to use is:
Adafruit_SSD1306 display(128, 64, &Wire); /**< OLED display object */
And the reset pin definition can be removed:
//#define OLED_RESET 4 /*< OLED mode /
I designed a custom top PCB with an arduino pro mini, and used pin 4 for one of the encoder inputs. That didn't work out of the box, because pin 4 appeared to be stuck high. It's not used in the schematic and also not defined in the header block with pin numbers. This was hard to track down, but:
The constructor used for the OLED display is deprecated (as per adafruit's documentation). It uses a reset pin, and the reset pin is defined as pin 4 in the OLED part of the spot welder header file (you don't have the bare source file in the repo so I can't link to it).
The correct constructor to use is:
Adafruit_SSD1306 display(128, 64, &Wire); /**< OLED display object */
And the reset pin definition can be removed: //#define OLED_RESET 4 /*< OLED mode /