Alternatively one could use the Arduino API on the beaglebone with https://github.com/prpplague/Userspace-Arduino
It would make the whole thing less scary for beginners and there are tons of examples and documentation out there.
It would make the whole thing less scary for beginners and there are tons of examples and documentation out there.