Skip to content

Commit 6823a3f

Browse files
committed
Fix int
1 parent 40db03e commit 6823a3f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.vscode/arduino.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"board": "esp32:esp32:esp32",
3-
"port": "COM1"
2+
"board": "esp8266:esp8266:d1_mini",
3+
"port": "COM6",
4+
"configuration": "xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600",
5+
"sketch": "examples\\Number-select\\Number-select.ino"
46
}

src/AiEsp32RotaryEncoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AiEsp32RotaryEncoder
6767
AiEsp32RotaryEncoder(
6868
uint8_t encoderAPin = AIESP32ROTARYENCODER_DEFAULT_A_PIN,
6969
uint8_t encoderBPin = AIESP32ROTARYENCODER_DEFAULT_B_PIN,
70-
uint8_t encoderButtonPin = AIESP32ROTARYENCODER_DEFAULT_BUT_PIN,
70+
int encoderButtonPin = AIESP32ROTARYENCODER_DEFAULT_BUT_PIN,
7171
int encoderVccPin = AIESP32ROTARYENCODER_DEFAULT_VCC_PIN,
7272
uint8_t encoderSteps = AIESP32ROTARYENCODER_DEFAULT_STEPS);
7373
void setBoundaries(long minValue = -100, long maxValue = 100, bool circleValues = false);

0 commit comments

Comments
 (0)