We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3171b82 commit c512ffaCopy full SHA for c512ffa
examples/Modulino_Vibro/Basic/Basic.ino
@@ -8,8 +8,20 @@ void setup() {
8
}
9
10
void loop() {
11
- vibro.on(1000);
+ // Cycle through vibration intensities from GENTLE to MAXIMUM
12
+ // Each intensity increases by 5, lasting 1 seconds each
13
+ for (int intensity = GENTLE; intensity <= MAXIMUM; intensity += 5) {
14
+ Serial.println(intensity);
15
+ vibro.on(1000, true, intensity);
16
+ vibro.off();
17
+ delay(100);
18
+ }
19
+
20
+ // Two vibration of one second separated by a long pause
21
+ // using the blocking on call
22
delay(1000);
- vibro.off();
23
+ vibro.on(1000);
24
+ delay(5000);
25
26
27
0 commit comments