Datasheet

5
4. Usage
4.1 With Arduino
/*
Turns on an Electromagnet on for one second, then off for one second,
repeatedly.
This example code is in the public domain.
*/
int Electromagnet = 0;
int LED = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(Electromagnet, OUTPUT);
pinMode(LED, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {