This video demonstrates an Arduino Sketch being cross-compiled for embedded linux and executed on the Beaglebone Black.
For detailed steps, got to http://elinux.org/Userpace_Arduino
I forgot to mention that you need a BB-BONE-BACONE-00A0.dtbo file in the /lib/firmware directory on the Beaglebone Black. It is required to configure the pinmux of AM335x for the Bacon Cape. Get the overlay from http://elinux.org/images/8/85/BB-BONE…
Simply copy it to the /lib/firmware folder on the Beaglebone Black and the code should work fine.
Each Tuesday is BeagleBone Black Day here Adafruit! What is the BeagleBone? The BeagleBones are a line of affordable single-board Linux computers (SBCs) created by Texas Instruments. New to the Bone? Grab one of our Adafruit BeagleBone Black Starter Packs and check out our extensive resources available on the Adafruit Learning System including a guide to setting up the Adafruit BeagleBone IO Python Library. We have a number of Bone accessories including add-on shields (called “capes”) and USB devices to help you do even more with your SBC. Need a nice display to go along with your Bone? Check out our fine selection of HDMI displays, we’ve tested all of them with the Beagle Bone Black!