Code produit: | KY-008 |
Module Laser pour arduino
This Arduino sketch will repeatedly turn on and off the laser head every second.
int laserPin = 13;
void setup() {
pinMode(laserPin, OUTPUT); // Define the digital output interface pin 13
}
void loop() {
digitalWrite(laserPin, HIGH); // Open the laser head
delay(1000); // Delay one second
digitalWrite(laserPin, LOW); // Close the laser head
delay(1000);
}