Skip to content

An Arduino library for building JUDI-compatible device firmware

License

Notifications You must be signed in to change notification settings

Codex-Engine/ArduinoJUDI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ArduinoJUDI

An Arduino library for building JUDI-compatible firmware

Requirements

ArduinoJson

Installation

ArduinoJUDI is a single header library, so you can just add judi.hpp directly to your project.

Example

This is a minimal arduino sketch that just responds to the JUDI handshake.

#include "judi.hpp"

JUDI judi("your device", "$GME42069");

void check_comms(char currentChar) {
    if (judi.update(currentChar)) {
        if (judi["request"] == "device_info") {
            serializeJson(judi.device_info, Serial);
        }
    }
}

void setup() {
    Serial.begin(115200);
}

void loop() {
    if (Serial.available()) {
        check_comms(Serial.read());
    }
}

About

An Arduino library for building JUDI-compatible device firmware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages