grafik

edc/grafik/grafik

No description
grafik
@/grafik
DEV@/grafik
grafik
BChart
DEV
BChart@/grafik
To use the node in your project you should have the edc/grafik library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD require "https://github.com/Seeed-Studio/Seeed_Arduino_Histogram"

//#include <SPI.h>
#include"Histogram.h"

node {
    meta {
        using Type = TFT_Histogram*;
    }

    TFT_Histogram barchart = TFT_Histogram();
    
    void evaluate(Context ctx) {
        if (!isSettingUp())
            return;

        auto tft = getValue<input_DEV>(ctx);
        barchart.initHistogram(tft);

        emitValue<output_BChart>(ctx, &barchart);
    }
}