arduino-libraries / Servo

Servo Library for Arduino
http://arduino.cc/
GNU Lesser General Public License v2.1
254 stars 262 forks source link

warning for mbed_nano architecture #74

Closed montoyamoraga closed 3 years ago

montoyamoraga commented 3 years ago

i have been using this library with an Arduino Nano 33 BLE Sense, and Arduino released a new core for it, where the architecture is named mbed_nano so now i have a warning that says " WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed architecture(s) and may be incompatible with your current board which runs on mbed_nano architecture(s). "

withinboredom commented 3 years ago

@montoyamoraga just curious, how did you get this to compile? I receive the following error:

error: 'DigitalOut' in namespace 'mbed' does not name a type

withinboredom commented 3 years ago

I guess it helps to install the library.

montoyamoraga commented 3 years ago

this was already resolved

bilal697 commented 3 years ago

this was already resolved

How to solve for mbed_nano-architecture.

per1234 commented 3 years ago

@bilal697 as mentioned above it was already resolved (https://github.com/arduino-libraries/Servo/commit/dc84300ae133463b3ef17f9138e756ea9a65fe07) quite some time ago. Just make sure you are using the latest 1.1.8 version of the Servo library. You can check the version and update the library in the Arduino IDE's Library Manager (Sketch > Include Libraries > Manage Libraries...).

If you have any questions, you're welcome to post on the Arduino Forum: https://forum.arduino.cc/