A collection of code for playing around with an Arduino Uno.
Arduino Sketches, C code, and Atom (Haskell EDSL) code is provided.
'blinks' the inbuild LED of the Arduino.
The C code was taken from balau82's post.
The Atom code was adapted from this TechOverflow post
Project 02 of the Arduino Projects Book, which comes with the Arduino Starter
Kit.
Has a push-switch and some LEDs (green, red, red). The green LED is lit if
the switch is not pressed, red LEDs alternate if the switch is pressed.
Adapted from suapapa/arscons
Assumes scons
, and the Python package pyserial
installed.
Assumes the cabal packages atom
and heredoc
are installed.
It can be easier to install these in a Cabal Sandbox (and the makefiles assume
these are created in the atom/
folders).
A sandbox can be created, with these dependencies installed by running:
cabal sandbox init
cabal install atom
cabal install heredoc