IndentedPrintExample:修訂版本之間的差異
從 YFRobotwiki
(以“<pre> // Copyright Benoit Blanchon 2014-2016 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson // If you like this project, plea...”为内容创建页面) |
|||
(由1名用戶作出的3個中途修訂版本未被顯示) | |||
第 1 行: | 第 1 行: | ||
+ | |||
+ | [[Json库]] | ||
+ | |||
+ | |||
<pre> | <pre> | ||
第 39 行: | 第 43 行: | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | |||
+ | [[Arduino库|返回Arduino库菜单]] | ||
+ | |||
+ | [[首页|返回首页]] | ||
+ | |||
+ | 更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛] |
2016年8月22日 (一) 15:38的最新修訂版本
// Copyright Benoit Blanchon 2014-2016 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson // If you like this project, please add a star! #include <ArduinoJson.h> using namespace ArduinoJson::Internals; void setup() { Serial.begin(115200); while (!Serial) { // wait serial port initialization } IndentedPrint serial(Serial); serial.setTabSize(4); serial.println("This is at indentation 0"); serial.indent(); serial.println("This is at indentation 1"); serial.println("This is also at indentation 1"); serial.indent(); serial.println("This is at indentation 2"); serial.unindent(); serial.unindent(); serial.println("This is back at indentation 0"); } void loop() { // not used in this example }
更多建議和問題歡迎反饋至 YFRobot論壇