Continuing the discussion from Makeblock libraries fail on Arduino UNO:
I have found a solution to this ancient problem
In the Servo.h
header that can be found in arduino/libraries/makeblock/utility
, there is a following part around line 60:
// Architecture specific include
#if defined(ARDUINO_ARCH_AVR)
#include "avr/ServoTimers.h"
#elif defined(ARDUINO_ARCH_SAM)
#include "sam/ServoTimers.h"
#elif defined(ARDUINO_ARCH_SAMD)
#include "samd/ServoTimers.h"
#else
#error "This library only supports boards with an AVR, SAM or SAMD processor."
#endif
this should be replaced with simply:
// Architecture specific include
#include "avr/ServoTimers.h"
After that, you may get some further errors, but inserting an include to this header in the Firmware file (Firmware_for_MegaPi.ino
in my case) made it to work:
#include <Servo.h>