The connection is
Sensor (8bit) === > GPIO
GPIO===>LED
That's it.
The idea is to ensure real-time performance with drivers that don't allow other interrupts.
Self-Driver:
Polling GPIO with for (inti=0;i<n;i++).
Turn on the LED when the pattern matches in chronological order.
Break when you reach n times.
Let's go with the algorithm.
As mentioned above, the system freezes for a few seconds, is there no problem?
How do I ban all interrupts when a driver is called?
Or is there any other good mechanism?
Thank you for your cooperation.
raspberry-pi
There is also a way to run μITRON.
It's ITRON, so it's very real-time.
http://domisan.sakura.ne.jp/article/rp_toppers/rp_toppers.html
https://www.kara-kuri.jp/blog/?p=1224
https://tech.nikkeibp.co.jp/it/atcl/column/16/060700122/062200039/
© 2024 OneMinuteCode. All rights reserved.