{{#global}}
#include <Adafruit_GFX.h> // Core graphics library
#include <MCUFRIEND_kbv.h>
{{/global}}
struct State {
uint8_t mem[sizeof(Adafruit_GFX_Button)];
};
using Type = Adafruit_GFX_Button*;
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
if (!isSettingUp())
return;
auto state = getState(ctx);
// Create a new object in the memory area reserved previously.
Type button = new (state->mem) Adafruit_GFX_Button;
emitValue<output_DEV>(ctx, button);
emitValue<output_DONE>(ctx, 1);
}