文件名称:Arduino-PrintStream:一个简单的库,添加`std
文件大小:17KB
文件格式:ZIP
更新时间:2024-05-31 09:56:20
C++
Arduino打印流 一个简单的库,它为Arduino添加了std::cout的支持(使用<<符)。 用法示例 # include < PrintStream> void setup () { Serial. begin ( 115200 ); Serial << " Hello, World! " << endl; Serial << F ( " Counting to 0xf in hexadecimal: " ) << hex << noleadingzeros << showbase; for ( int i = 0 ; i < 0x10 ; i++) Serial << i << ' ' ; Serial << dec << endl; float voltage = analogRead (A0) * 5 / 1024.0
【文件预览】:
Arduino-PrintStream-master
----LICENSE(34KB)
----src()
--------PrintStream.cpp(6KB)
--------PrintStream.h(2KB)
----library.properties(195B)
----examples()
--------PrintStream-example()
----.gitignore(8B)
----README.md(756B)