Last week was dedicated to adding error control and refactoring some of the code. We also have a working demo for the Bacon Cape. It doesn’t do much, though: just a simple button press detect. But we do plan to get a full demo up this week.
Dave (prpplague) has been helping out a lot over the last couple of days. He took it upon himself to clean some of the messy parts of the repo.
Over the last 2 days, Dave has also completely re-organized the project into a much smaller repo, Userspace-Arduino. Arduino-Makefile and send-exec have both been fully integrated with the libraries and should work out-of-the-box. For instructions, check here. We will be working there for a while, until we need to start working on the Wiring IDE.
We also figured we would be needing Device Tree Overlays for configuring the AM335x pinmux to work with the Bacon Cape peripherals. Pantellis Antoniou graciously obliged and we now have a Bacon Cape overlay, BB-BONE-BACONE for configuring the pinmux. We also have a pretty awesome script to test the cape. The new image with the overlay: http://dominion.thruhere.net/koen/angstrom/beaglebone/test-BBB-eMMC-flasher-2013.07.11.img.xz. The overlay is located in /lib/firmware. Thanks again, panto and koen.
As usual, we do a
root@beaglebone:~# echo BB-BONE-BACONE > /sys/devices/bone_capemgr*/slotsThe BB-BONE-BACONE uses sysfs for accessing PWM and gpios. For a driver based implementation (leds-pwm api for pwm and gpio-keys for the button), do a
root@beaglebone:~# echo BB-BONE-BACON > /sys/devices/bone_capemgr*/slots