Skip to content

Instantly share code, notes, and snippets.

View kuang-da's full-sized avatar
🦊
Focusing

Da (Derek) Kuang kuang-da

🦊
Focusing
View GitHub Profile
@kuang-da
kuang-da / color-mixing-lamp.cpp
Created November 26, 2025 14:51 — forked from psychemist/color-mixing-lamp.cpp
Arduino Starter Project 4
// set up constants for input and output pins
const int redLEDPin = 9;
const int greenLEDPin = 10;
const int blueLEDPin = 11;
const int redSensorPin = A0;
const int greenSensorPin = A1;
const int blueSensorPin = A2;
// add variables for incoming sensor and output values