Constructor of HardwareUart, provides serial communication through Serial3.
uart-3
@/uart-3
Constructor of HardwareUart, provides serial communication through Serial3.
DONEpulse
Pulses when UART communication began
node {
uint8_t mem[sizeof(HardwareUart)];
HardwareUart* uart;
void evaluate(Context ctx) {
if (isSettingUp()) {
uart = new (mem) HardwareUart(Serial3, (uint32_t)getValue<input_BAUD>(ctx));
emitValue<output_UART>(ctx, uart);
}
if (isInputDirty<input_INIT>(ctx)) {
uart->begin();
emitValue<output_DONE>(ctx, 1);
}
}
}