Skip to content

Instantly share code, notes, and snippets.

@motine
Last active September 18, 2015 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motine/14ac53cf0171e66e9cd8 to your computer and use it in GitHub Desktop.
Save motine/14ac53cf0171e66e9cd8 to your computer and use it in GitHub Desktop.
use STA to print a number.
#include "sketchbook.h"
void setup() {
}
void draw() {
int result = 77; // this would be your solution
// use the following code to output the result
char buffer[100];
sprintf(buffer, "%i", result);
text(10, 10, buffer);
// stop draw from being called again and again
stop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment