// Lorena Delgado PiƱa, 2021 Fab Academy, Output devices week - Vibration Motor int VibrationPin = 4; // create integer variable for motor pin on Attiny412 PWM PA3 pin int onTime = 200; // create integer variable for when motor is on int offTime = 600; // create integer variable for when motor is off void setup() { pinMode(VibrationPin, OUTPUT); // Set output on Attiny412 PWM PA3 pin } void loop() { // put your main code here, to run repeatedly: digitalWrite(VibrationPin, HIGH); // turn vibration motor on delay(onTime); // stays on for 200 ms digitalWrite(VibrationPin, LOW); // turn vibration motor off delay(offTime); //stays off for 600 ms }