Jump to content

Reading the Build-In FraunchPad Accelerometer on Energia

Recommended Posts

Just tried the example Sketch and noticed a small bug in the library:


diff -r -U 2 Accelerometer_FRAUNCHPAD/FraunchPad_Accelerometer.cpp Accelerometer_FRAUNCHPAD_new/FraunchPad_Accelerometer.cpp
+++ Accelerometer_FRAUNCHPAD/FraunchPad_Accelerometer.cpp	2012-09-23 08:56:09.000000000 -0700
--- Accelerometer_FRAUNCHPAD_new/FraunchPad_Accelerometer.cpp	2012-09-23 08:30:24.000000000 -0700
@@ -79,5 +79,5 @@

void accelerometer_FR::begin() {
+  digitalWrite(ACC_ENABLE, HIGH);
-  pinMode(ACC_ENABLE, HIGH);
  _x = 0;
  _y = 0;

Link to post
Share on other sites

This is an awesome library! Thanks a bunch @Rei_Vilo for putting this together!


For all that have a FraunchPad, we plan to do a release around the end of the month that will feature FraunchPad support.

If you are interested what is on github now and help testing then pm me and I will get you going on building from github.



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...