That is saying that led_timer_max was not declared in this scope
What's the question?
led_timer_max is only used in the function:
ICACHE_RAM_ATTR void ledInterrupt(){
But led_timer_max is neither declared as a global or in the function where it is used.
Could there be a missing .h file?
(I only looked at the last error. The others are probably generated by the same problem.)