As the title might suggest, this post is about me getting familiar with the Occam concurrent programming language and the Arduino.
Occam runs on the Arduino by means of the Transterpreter VM. So my first little project was to get the development environment set up, get the code to cross-compile, and write a little blink program that would cause an LED to…, well, blink. Here is a process diagram:
Not a terribly complicated exercise, but got my feet wet. So, tick is being awakened by the system every ms milliseconds at which point it sends a signal to toggle. Upon receiving it’s signal, toggle flips the level it has on record and sends it to led. Then led just does a digital write on the pin it monitors. This is the magic of blink.