Using arduino libraries

23 Oct 2011

Where would I start ?

23 Oct 2011

Gregory,

I have used a few Arduino libs and here are some points you may need to be aware of.

1 Understand the functions in the library. 2 Maths and logic are mostly the same, but keep in mind that the Arduino is 8/16bit. 3 All the different protocols will need to be rewritten for the MBED. 4 The .pde file will most likely be your main.cpp. Setup() will go above with your declarations, Loop() will be in int main(). Note do not use setup() and loop(), but for loop() use while 5 To start add mbed.h (this is a quick and dirty way) and try to compile, then solve the errors as you go. Post again when you hit a problem you cant solve.

Dave

28 Nov 2014

Have you tried using Arduino Wifi for mbed Nucleo STF401RE board?

17 May 2016

Does it exists a library to convert basic method of arduino like Analogread Digitalread etc... into the correspondent method of mbed stm32??

17 May 2016

Does it exists a library to convert basic methods of arduino like Analogread Digitalread etc... into the correspondent method of mbed stm32??

18 May 2016

Not really a library to convert but all of the same functions are there. Start with this page: https://developer.mbed.org/handbook/Homepage

Take a look at AnalogIn and DigitalIn those are the equivalents to the functions you mentioned from Arduino.