// C++ code
//
const int buttonPin = 13;
const int redLedPin = 12;
const int buzzerPin = 8;
const int potentiometerPin = A0;
const int rgbLedPinRed = 11;
const int rgbLedPinGreen = 10;
const int rgbLedPinBlue = 9;
int potValue = 0;
int intensity = 0;
bool buttonState = false;
bool lastButtonState = false;
unsigned long lastDebounceTime = 0;
unsigned long debounceDelay = 50;
void setup() {
pinMode(buttonPin, INPUT_PULLUP);
pinMode(redLedPin, OUTPUT);
pinMode(buzzerPin, OUTPUT);
pinMode(rgbLedPinRed, OUTPUT);