prog.cpp:1:1: error: ‘uint16_t’ does not name a type
uint16_t pwm_interval = ...;
^
prog.cpp:2:1: error: ‘uint16_t’ does not name a type
uint16_t on_time[LEDS]; // this is the input determining LED brigthenss, must be <= pwm_interval
^
prog.cpp:6:16: error: ‘LEDS’ was not declared in this scope
bool led_state[LEDS];
^
prog.cpp:7:1: error: ‘uint16_t’ does not name a type
uint16_t led_next_toggle_time[LEDS];
^
prog.cpp:10:1: error: ‘uint16_t’ does not name a type
uint16_t start_time = TCNT1;
^
prog.cpp:11:1: error: expected unqualified-id before ‘for’
for (int i = 0; i < LEDS; i++) {
^
prog.cpp:11:17: error: ‘i’ does not name a type
for (int i = 0; i < LEDS; i++) {
^
prog.cpp:11:27: error: ‘i’ does not name a type
for (int i = 0; i < LEDS; i++) {
^
prog.cpp:16:19: error: ‘uint16_t’ was not declared in this scope
bool timeReached (uint16_t target_time)
^
prog.cpp:17:1: error: expected ‘,’ or ‘;’ before ‘{’ token
{
^
prog.cpp:22:1: error: expected unqualified-id before ‘while’
while (1) {
^