https://github.com/codeadamca/arduino-45in1-7-colour-led
Connecting a 7 Colour LED to an Arduino.
https://github.com/codeadamca/arduino-45in1-7-colour-led
arduino cplusplus led
Last synced: 3 months ago
JSON representation
Connecting a 7 Colour LED to an Arduino.
- Host: GitHub
- URL: https://github.com/codeadamca/arduino-45in1-7-colour-led
- Owner: codeadamca
- Created: 2020-10-28T02:49:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T22:11:07.000Z (5 months ago)
- Last Synced: 2025-01-26T23:19:02.644Z (5 months ago)
- Topics: arduino, cplusplus, led
- Language: C++
- Homepage:
- Size: 241 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arduino and a 7 Colour LED
A basic example of controlling a 7 colour LED using an Arduino.
## Arduino Code
Open up [Arduino Create](https://create.arduino.cc/editor/) and add the following code:
```cpp
int crtl = 13;void setup() {
pinMode(crtl, OUTPUT);
digitalWrite(crtl,LOW);
}void loop()
{
digitalWrite(crtl, HIGH);
delay(5000);
digitalWrite(crtl, LOW);
delay(5000);
}
```> [View the Arduino code on Arduino Create](https://create.arduino.cc/editor/professoradam/a138a69e-3346-447d-888c-48453e31be7d/preview)
## Curcuit
You will need to setup the following circuit using your Arduino:

> [View the Circuit on Tinkercad](https://www.tinkercad.com/things/70JidFT9pyj)
> Full tutorial URL:
> https://codeadam.ca/learning/arduino-45in1.html***
## Repo Resources
* [Visual Studio Code](https://code.visualstudio.com/) (or any code editor)
* [Arduino Create](https://create.arduino.cc/editor)