I try servo library and compiller give me message like "sam and AVR is only supported"
I try to copy servo library from github to "hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo\"
but give me a lot of error
In file included from C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/Servo.h:67:0,
from sketch_jun07a.ino:1:
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:59:24: error: 'timercallback' has not been declared
void InitInterrupt(timercallback handler)
^
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h: In member function 'void ServoTimer0::InitInterrupt(int)':
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:61:25: error: 'timer0_isr_init' was not declared in this scope
timer0_isr_init();
^
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:62:39: error: 'timer0_attachInterrupt' was not declared in this scope
timer0_attachInterrupt(handler);
^
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h: In member function 'void ServoTimer0::StopInterrupt()':
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:69:32: error: 'timer0_detachInterrupt' was not declared in this scope
timer0_detachInterrupt();
^
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h: In member function 'void ServoTimer0::SetPulseCompare(uint32_t)':
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:74:49: error: 'timer0_write' was not declared in this scope
timer0_write(ESP.getCycleCount() + value);
^
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h: In member function 'void ServoTimer0::SetCycleCompare(uint32_t)':
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:79:41: error: 'timer0_write' was not declared in this scope
timer0_write(_cycleStart + value);
^
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h: At global scope:
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:147:24: error: 'timercallback' has not been declared
void InitInterrupt(timercallback handler)
^
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h: In member function 'void ServoTimer1::InitInterrupt(int)':
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/ServoTimers.h:150:39: error: invalid conversion from 'int' to 'void (*)()' [-fpermissive]
timer1_attachInterrupt(handler);
^
In file included from C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\libraries\Servo/Servo.h:52:0,
from sketch_jun07a.ino:1:
C:\Users\Mili\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\cores\esp8266/Arduino.h:106:6: error: initializing argument 1 of 'void timer1_attachInterrupt(void (*)())' [-fpermissive]
void timer1_attachInterrupt(void (*userFunc)(void));
I try to modify source for missing files, but still servo library not work for me...
Can anybody help me?
I use Arduino 1.6.4 and install esp8266 board from boards manager... Running win7 x64