giit Editors
LaTeX, Markdown, SVG, CSV, QR codes and more in the browser - code on the left, result on the right.
An Arduino library that reads commands like «G1 X40 Y10» from the serial port and calls your own function for each code. Control plotters, scanners or robots from your computer - with commands much like those of a 3D printer.
Download the ZIP and add it in the Arduino IDE via «Sketch › Include Library › Add .ZIP Library».
One function per code: «X» calls setX, «M» calls setM - with the number that follows.
From the serial monitor or your own program, one command per line, ending with a line break.
Control plotters, camera sliders or a robot arm with simple text commands.
Show how machines understand commands - a small, readable example for technology lessons.
Drive a setup from your computer without inventing your own protocol.
Use familiar G-code commands on your own hardware and add codes of your own.
#include <SebisSerialInterpreter.h>
SebisSerialInterpreter ssi(&Serial);
FunctionList fx;
void setX(String code, double value) {
Serial.println(value); // e.g. move motor X here
}
void lineDone() { } // runs at the end of each line
void setup() {
Serial.begin(115200);
fx = ssi.createFunctionList("X", &setX);
ssi.addFunctionList(&fx);
ssi.setFinalFunction(&lineDone); // optional
}
void loop() {
ssi.serialRead(false, false); // non-blocking read
}
A simple command language for machines: letters followed by numbers give commands and values. «G1 X40 Y10», for example, means: move to X 40, Y 10. 3D printers and CNC mills work this way.
No. The library recognises any code made of letters followed by a number. You decide what each code means.
The library is listed for all Arduino architectures and reads from any serial port, such as Serial, Serial1 or SoftwareSerial.
Every line has to end with a line break. In the serial monitor, choose «Newline».
Yes, commercial projects included. It is released under the MIT licence.
Arduino library: commands like G1 X40 Y10 call your own functions.
LaTeX, Markdown, SVG, CSV, QR codes and more in the browser - code on the left, result on the right.
Search many documents at once - PDF, Word, Excel and more, with text recognition.
Short exercises for maths and German, with instant feedback.
Put together what you need in about 15 minutes - the website itself is individually programmed.