Im interested in making some simple bots of my own for various games using arduino projects similar to this. However, I can't quite figure out how these developers are figuring out the button timings.
for example in this instance. What are the values, 200, 1250, 500, and 5. From my understanding, this isn't like a "sleep" function so they aren't miliseconds or seconds. Correct?
I appreciate any/all help, thank you!
for example in this instance. What are the values, 200, 1250, 500, and 5. From my understanding, this isn't like a "sleep" function so they aren't miliseconds or seconds. Correct?
I appreciate any/all help, thank you!
Code:
#include <Arduino.h>
#include <NintendoSwitchControlLibrary.h>
const int _buttonDelay = 200;
const int _dialogDelay = 1250;
void setup() {
// Connect controller
pushButton(Button::B, 500, 5);
// Open boxes
pushButton(Button::X, _buttonDelay);