         write_buffer[1] = THIS_DEVICE_NUM;
 
         uint8_t led_num = 0;
+        uint8_t pwm_val = 0;
         bool current_led_state = 0;
         bool answer = false;
         switch(read_buffer[0])

            case 0x01:
                led_num = read_buffer[9];
                led_num = led_num % LED_NUM;
                current_led_state = digitalRead(led_pins[led_num]);
                current_led_state = !current_led_state;
                digitalWrite(led_pins[led_num], current_led_state);
                write_buffer[0] = 0x00;
                write_buffer[9] = current_led_state;
                break;
            case 0x02:
                led_num = read_buffer[9];
                led_num = led_num % LED_NUM;
                digitalWrite(led_pins[led_num], HIGH);
                write_buffer[0] = 0x00;
                break;
            case 0x03:
                led_num = read_buffer[9];
                led_num = led_num % LED_NUM;
                digitalWrite(led_pins[led_num], LOW);
                write_buffer[0] = 0x00;
                break;
            case 0x04:
                write_buffer[9] = digitalRead(led_pins[3]);
                write_buffer[8] = digitalRead(led_pins[2]);
                write_buffer[7] = digitalRead(led_pins[1]);
                write_buffer[6] = digitalRead(led_pins[0]);
                break;
            default:
                write_buffer[0] = 0xFF;

    for(int i = 0; i < LED_NUM; i++){
        pinMode(led_pins[i], OUTPUT);
        digitalWrite(led_pins[i], LOW);
        led_states[i] = 0;
    }

}
