ProjectNeura / LEADS

Enable your racing car with powerful, data-driven instrumentation, control, and analysis systems, all wrapped up in a gorgeous look.
https://leads.projectneura.org
Apache License 2.0
257 stars 54 forks source link

Supports Full-duplex Serial Communication within a Single Arduino Thread #319

Closed ATATC closed 4 months ago

ATATC commented 4 months ago

Background

Being able to both send and receive messages at the same time without logical order is the ideal case between our Python framework and our Arduino framework. However, the traditional way to implement this relies on multithreading, which is impossible on an Arduino.

Task

It is time to draw more attention to this difficulty and solve it. A clear path inherited from modern PCs is to switch between tasks at an unnoticed speed.