Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions examples/Modulino_Vibro/Basic/Basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@ void setup() {
}

void loop() {
vibro.on(1000);
// Cycle through vibration intensities from GENTLE to MAXIMUM
// Each intensity increases by 5, lasting 1 seconds each
for (int intensity = GENTLE; intensity <= MAXIMUM; intensity += 5) {
Serial.println(intensity);
vibro.on(1000, true, intensity);
vibro.off();
delay(100);
}

// Two vibration of one second separated by a long pause
// using the blocking on call
delay(1000);
vibro.off();
vibro.on(1000);
delay(5000);
vibro.on(1000);
delay(1000);
}