I found this link in one of Jack Ganssle's The Embedded Muse (#427) that I thought might be helpful to others and beginning programmers, there are links at the bottom for continued study.
Here is the link: https://embeddedartistry.com/blo...
I hope you find it useful.
Jim
Not sure if the Arduino forum is the best place for this.....