struct State {
};
{{ GENERATED_CODE }}
void makeChar(LiquidCrystal_I2C* lcd, Number charnum, uint8_t b1, uint8_t b2, uint8_t b3, uint8_t b4,uint8_t b5, uint8_t b6, uint8_t b7, uint8_t b8) {
uint8_t charData[8]={b1, b2, b3, b4, b5, b6, b7, b8,};
lcd->createChar(charnum, charData);
}
void evaluate(Context ctx) {
auto t = getValue<input_DEV>(ctx);
Number charNum = getValue<input_num>(ctx);
uint8_t byte_1 = getValue<input_byte1>(ctx);
uint8_t byte_2 = getValue<input_byte2>(ctx);
uint8_t byte_3 = getValue<input_byte3>(ctx);
uint8_t byte_4 = getValue<input_byte4>(ctx);
uint8_t byte_5 = getValue<input_byte5>(ctx);
uint8_t byte_6 = getValue<input_byte6>(ctx);
uint8_t byte_7 = getValue<input_byte7>(ctx);
uint8_t byte_8 = getValue<input_byte8>(ctx);
if (charNum < 0 || charNum > 7) {
raiseError<output_DONE>(ctx);
return;
}
makeChar(t.lcd, charNum, byte_1, byte_2, byte_3, byte_4, byte_5, byte_6, byte_7, byte_8);
emitValue<output_DONE>(ctx, 1);
emitValue<output_DEVU0027>(ctx, t);
}