-
-
Save matthijskooijman/9575651 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <Wire.h> | |
#include <Scout.h> | |
#include <GS.h> | |
#include <bitlash.h> | |
#include <lwm.h> | |
#include <js0n.h> | |
#include "util/StringBuffer.h" | |
#include "util/PrintToString.h" | |
StringBuffer str(0, 4); | |
void setup() { | |
Serial.begin(115200); | |
str = "{"; | |
Serial.println(str); | |
str += "ab"; | |
str += "d"; | |
str += "e"; | |
Serial.println(str); | |
str.appendSprintf("\"%s\": %d", "hi", 2); | |
Serial.println(str); | |
str.appendSprintf(", \"%s\": %d", "key", 3); | |
Serial.println(str); | |
str += "}"; | |
PrintToString pts(str); | |
pts.println(); | |
pts.println("one more line"); | |
Serial.println(str); | |
printToString<&str>('m'); | |
printToString<&str>('o'); | |
printToString<&str>('r'); | |
printToString<&str>('e'); | |
Serial.println(str); | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment