bar-chart

wayland/wio-terminal-bar-chart/bar-chart

Create bar chart.
bar-chart
@/bar-chart
Create bar chart.
DEVwayland/wio-terminal-lcd/wt-lcd-device
A wt-lcd-device.
bar-chart
BChart
DEV
BChart@/bar-chart
A bar-chart object.
To use the node in your project you should have the wayland/wio-terminal-bar-chart 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);
    }
}