I have seen mention of setting up a 3rd button to be exclusively a reload button, but the details have been a bit hard to uncover. Is there a source for this I can refer to to try to get this set up?
Looks like all you need is:
Button Aux2Button(BUTTON_RELOAD, aux2Pin, "aux2");
(In the CONFIG_BUTTONS section.)
is that it, awesome. is there a way to adjust the font change to the longer press that was previously reload?
The blaster.h file has these actions currently
case EVENTID(BUTTON_RELOAD, EVENT_PRESSED, MODE_ON):
case EVENTID(BUTTON_MODE_SELECT, EVENT_HELD_MEDIUM, MODE_ON):
Reload();
return true;
This means that with a 3 button setup (FIRE, MODE, and RELOAD)
the blaster will reload when doing either of these actions. (just pressing Reload, or holding Mode)
If I correctly understand what you want it to be, you could edit these to
- remove the Hold Mode button action
- move the holding part to the reload button instead.
so that could look like this:
// case EVENTID(BUTTON_RELOAD, EVENT_PRESSED, MODE_ON):
// case EVENTID(BUTTON_MODE_SELECT, EVENT_HELD_MEDIUM, MODE_ON):
case EVENTID(BUTTON_RELOAD, EVENT_HELD_MEDIUM, MODE_ON):
Reload();
return true;
That makes a hybrid of the old actions to now do what you want, as well as leaves the original lines there, just commented out so they are ignored. That way it’s easy to see what it used to be, and easy to change back if you ever wanted to.
this did not seem to activate the reload button. I confirmed that the connection is good, double checked pin, etc.
from config file
#ifdef CONFIG_BUTTONS
Button FireButton(BUTTON_FIRE, powerButtonPin, "fire");
Button ModeButton(BUTTON_MODE_SELECT, auxPin, "modeselect");
Button Aux2Button(BUTTON_RELOAD, aux2Pin, "aux2");
#endif
What does the serial monitor say when you press it?
serial monitor doesn’t register the button press
I am connected to the circled pin, and if i swap that lead to the powerButtonPin, i get the fire response, which gives e some confidence
i also made sure to change the Num_Buttons to 3 in my config file
#ifdef CONFIG_TOP
#include "proffieboard_v3_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 3
#define VOLUME 2500
If you switch powerButtonPin and aux2Pin in your config file,what happens?
user error on my side, editing the wrong config file.