In the Arduino IDE, chose menu option file>new and enter your code in the bodies of the setup() and loop() functions.
The IDE comes with a bunch of examples for you to study.
In the Arduino IDE, chose menu option file>new and enter your code in the bodies of the setup() and loop() functions.
The IDE comes with a bunch of examples for you to study.