const int leds[3] = {3, 5, 6};
const int rButt = 8;
const int gButt = 7;
const int colors [7][3] = {
{255, 0, 0},
{255, 127, 0},
{0, 0, 255},
{0, 255, 0},
{255, 255, 255},
};
void setup() {
for (int i= 0; i<3; i++){
pinMode(leds[i], OUTPUT);
}
pinMode(rButt, INPUT_PULLUP);
pinMode(gButt, INPUT_PULLUP);
analogWrite(leds[0], 255);
analogWrite(leds[1], 127);
analogWrite(leds[2], 0);
}
void loop() {
// put your main code here, to run repeatedly:
int x = digitalRead(rButt);
digitalWrite(leds[0], 1);
}