GSIKHOXLB6QJELAYIGDFLRIG6DRIQFMZG6ZCQ54BNB7FIDBVI5PAC
while (pico.multicore.fifo.read()) |rec| {
std.log.debug("CPU FIFO: {}", .{rec});
pico.multicore.fifo.write_blocking(rec);
}
// timer interrupt for PID
// PID.setAlarm(PID.PID_INTERRUPT_MS);
// peripherals.TIMER.INTE.modify(.{ .ALARM_0 = 1 });
// interrupt.enable(.TIMER_IRQ_0);
const packet = ddc.packets.readItem().?;
std.log.debug("packet address: {d} speed: {} instruction: {}", .{ packet.address, packet.speed(), packet.instruction });
if (ddc.packets.readItem()) |packet| {
std.log.debug(
"packet address: {d} speed: {} instruction: {}",
.{ packet.address, packet.speed(), packet.instruction },
);
}