How do i multi task with an arduino uno

If OP agrees with that paraphrased version (post #12) of his original text of post #1, then Forum Members may come forward to develop multi-tasking sketch using Arduino UNO R3 and Arduino_FreeRTOS as ChatGPT genertaed sketch is not much appreciated by the veteran members of this Forum.

OP may consult this thread for the basics of multi-tasking using Arduino UNO R3 and Arduino_FreeRTOS.