Hello,Im am very new to arduino and code. For a first project, I am trying to make three buttons simulate keyboard inputs and also light up, each in a different way. I can make the buttons or the leds work but I can not get them to work together. I have tried various combinations of code including serial.print, fallingedge, and others. I cant figure out what I am doing wrong and would greatly appreciate some direction.

I have three buttons. Button 0 should simulate pressing shift + letter a and loop through all colors via led. Button 1 should simulate pressing shift + letter b and cycle from white to blue in led or glow solid blue (which I was going to accomplish by supplying direct power to the blue led), and Button 2 should simulate pressing shift + letter b and glow white.

// Length of time we spend showing each colorconst int DISPLAY_TIME = 100; // In milliseconds

void setup() { // Configure the pins for input mode with pullup resistors. // The pushbuttons connect from each pin to ground. When // the button is pressed, the pin reads LOW because the button // shorts it to ground. When released, the pin reads HIGH // because the pullup resistor connects to +5 volts inside // the chip. pinMode(0, INPUT_PULLUP); pinMode(1, INPUT_PULLUP); pinMode(2, INPUT_PULLUP);

}

void loop() { // Update all the buttons. There should not be any long // delays in loop(), so this runs repetitively at a rate // faster than the buttons could be pressed and released. button0.update(); button1.update(); button2.update();