Isaac M. Bavaresco
2018-06-10 15:56:33 UTC
Dear All,
I'm helping some fellow teachers with their courses of introductory
programming for control and automation.
They use Arduino, and the programming techniques they use make it very
difficult for the students to accomplish some goals.
In my opinion the problem resides in the traditional "setup/loop"
approach without additional advanced techniques for concurrency. The
programs become huge "spaghetti dishes" full of switch/case with
everything intermixed.
At some point it becomes impossible to understand, maintain or expand.
I'm creating a version of my co-routines framework for Arduino, which
allows a simple but powerful mechanism to write multiple independent
'tasks/co-routines' that run concurrently (it is a cooperative approach,
so each task must comply with some simple rules).
The zip file with version 0.1.2 is attached. I greatly appreciate any
comments and suggestions. Please check to example code.
What I'm looking for now is a meaningful example to show the full
potential of the co-routines. Something simple to understand but that
produces impressive results that would be hard to create using the
traditional approach.
Best regards,
Isaac
---
Este email foi escaneado pelo Avast antivÃrus.
https://www.avast.com/antivirus
I'm helping some fellow teachers with their courses of introductory
programming for control and automation.
They use Arduino, and the programming techniques they use make it very
difficult for the students to accomplish some goals.
In my opinion the problem resides in the traditional "setup/loop"
approach without additional advanced techniques for concurrency. The
programs become huge "spaghetti dishes" full of switch/case with
everything intermixed.
At some point it becomes impossible to understand, maintain or expand.
I'm creating a version of my co-routines framework for Arduino, which
allows a simple but powerful mechanism to write multiple independent
'tasks/co-routines' that run concurrently (it is a cooperative approach,
so each task must comply with some simple rules).
The zip file with version 0.1.2 is attached. I greatly appreciate any
comments and suggestions. Please check to example code.
What I'm looking for now is a meaningful example to show the full
potential of the co-routines. Something simple to understand but that
produces impressive results that would be hard to create using the
traditional approach.
Best regards,
Isaac
---
Este email foi escaneado pelo Avast antivÃrus.
https://www.avast.com/antivirus