阅读背景:

是否有Arduino Serial库的跨平台“端口”?

来源:互联网 

I want to port an Arduino library (namely, the HerkuleX servo control library) from Arduino to the PC (namely, a desktop running Linux). Since Arduino libraries are written in C++, this should be fairly easy. However, the HerkuleX library makes use of the Arduino's Serial library, which AFAIK is specific to the hardware. Does anyone know of a cross-platform serial library (like Boost.Asio) with the same API as the Arduino one? I thought for sure it would exist already, but Google failed me. If not, I assume I'll have to pick an existing serial library and make a wrapper around it myself so it behaves like the Arduino Serial library. (That way if the upstream Arduino library is updated, re-porting it to PC won't be too much hassle.)I want to port an Arduino library (namely, the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: