This is a sample widget that utilizes the accelerometer to simulate a pendulum. You must run this widget on a chumby and move the chumby to swing the pendulum. Source files are included to enable you to build this widget using FlashDevelop, the free Flash development environment.
Open Pendulum.fdp in FlashDevelop and build the project.
The complete source code can be downloaded from here: pendulum.zip.
Run it on your chumby
Once pendulum.swf is built, you can upload it as your own widget. Further instructions for testing locally are outlined in FlashDevelop/Example or see Chumby_tricks#Mixing_local_widgets_into_a_channel