Skip to content

Commit b94789f

Browse files
committed
ModulinoKnob: rename pressed()
1 parent be72a4f commit b94789f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/Modulino_PlugNPlay/Modulino_PlugNPlay.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void loop() {
3636
float y;
3737
float z;
3838

39-
if (encoder.pressed()) {
39+
if (encoder.isPressed()) {
4040
skip = (skip + 1) % 5;
4141
}
4242

src/Modulino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class ModulinoKnob : public Module {
238238
memcpy(buf, &value, 2);
239239
write(buf, 4);
240240
}
241-
bool pressed() {
241+
bool isPressed() {
242242
get();
243243
return _pressed;
244244
}

0 commit comments

Comments
 (0)