Skip to content

Instantly share code, notes, and snippets.

@amcjen
Last active August 29, 2015 13:57
Show Gist options
  • Save amcjen/9573550 to your computer and use it in GitHub Desktop.
Save amcjen/9573550 to your computer and use it in GitHub Desktop.
#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"
void setup() {
Serial.begin(115200);
String str("{");
Serial.println(str);
str.appendSprintf("\"%s\": %d", "hi", 2);
Serial.println(str);
str.appendSprintf(", \"%s\": %d", "key", 3);
Serial.println(str);
str += "}";
Serial.println(str);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment