Robert Murrell / Sketchlet

You are viewing an older revision! See the latest version

Homepage

Simple framework to allow for mini-programs, or Sketchlets, to be executed on a single SoC. Distributed under the MIT license.

Arduino version of this library can be found at https://github.com/murrellrr/arduino_sketchlet.

Example Usage:

Inside your man.cpp file.

#include "main.h"

using namespace com::aerialspecs::mbed::sketchlet;

void setup() {
    controller = new Controller(MAX_SKETCHLET_SIZE);
    controller->setup();
}

bool loop() {
    return controller->loop();
}

void shutdown() {
    delete controller;
}

/**
 * 
 */
int main() {
    setup();
    while(loop()) {}
    shutdown();
}


All wikipages