Created
October 22, 2023 15:40
-
-
Save adgedenkers/8d40e943cdb0c577bf9bafb97b52a68c to your computer and use it in GitHub Desktop.
Hello World of Gemma Programming - Turn on an LED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Name: LED_Controller.ino | |
| Description: Lights an LED connected to pin D1 when Gemma v3 is powered on, and keeps the LED on. | |
| Author: Adge Denkers / github.com/adgedenkers/ | |
| Created: October 22, 2023 | |
| Updated: October 22, 2023 | |
| (C) 2023 denkers.co | |
| */ | |
| void setup() { | |
| pinMode(1, OUTPUT); // Set pin D1 as an output | |
| } | |
| void loop() { | |
| digitalWrite(1, HIGH); // Set pin D1 high to light the LED | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment