File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
examples/Modulino_PlugNPlay Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ModulinoPixels leds;
6
6
ModulinoKnob encoder;
7
7
ModulinoDistance distance;
8
8
ModulinoMovement imu;
9
- ModulinoAir barometer;
9
+ ModulinoPressure barometer;
10
10
11
11
void setup () {
12
12
@@ -65,20 +65,20 @@ void loop() {
65
65
leds.show ();
66
66
}
67
67
68
- if (buttons.get (a, b, c )) {
69
- if (a ) {
68
+ if (buttons.update ( )) {
69
+ if (buttons. isPressed ( 0 ) ) {
70
70
leds.set (1 + skip, RED, 15 );
71
71
buzzer.tone (440 + pitch, 1000 );
72
72
} else {
73
73
leds.clear (1 + skip);
74
74
}
75
- if (b ) {
75
+ if (buttons. isPressed ( 1 ) ) {
76
76
leds.set (2 + skip, BLUE, 15 );
77
77
buzzer.tone (880 + pitch, 1000 );
78
78
} else {
79
79
leds.clear (2 + skip);
80
80
}
81
- if (c ) {
81
+ if (buttons. isPressed ( 2 ) ) {
82
82
leds.set (3 + skip, GREEN, 15 );
83
83
buzzer.tone (1240 + pitch, 1000 );
84
84
} else {
Original file line number Diff line number Diff line change @@ -323,7 +323,6 @@ extern ModulinoColor BLUE;
323
323
extern ModulinoColor GREEN;
324
324
extern ModulinoColor VIOLET;
325
325
extern ModulinoColor WHITE;
326
- extern ModulinoClass Modulino;
327
326
328
327
/*
329
328
TODO: These classes need to be ported to Modulino ecosystem, as per the tof_sensor example
You can’t perform that action at this time.
0 commit comments