BUG Community

Welcome! Log In

Forums Java Von Hippel LED Methods

Subscribe to Von Hippel LED Methods  8 posts, 5 voices , Tagged: java vonhippel

Log in to reply to this topic
 
May 19, 2010 9:47am
User_img_not_found_05_med rawksolid 12 posts

I’m learning how to use the Von Hippel API, and I wrote a simple program to read the accelerometer and flash the red LED every second:


this.getIVonHippelModuleControl().setIOX(0); this.updateUI(this.getIAccelerometerSampleFeed().getSampleInputStream().readSample()); sleep(1000); this.getIVonHippelModuleControl().clearIOX(0); bugFrame.show();

The first call to the Von Hippel works, but the clearIOX call does not; hence the red light stays on. Does the program need some type of listener to see if the Von Hippel is ready to accept a hardware call?

-pm

May 19, 2010 12:00pm
Medium Bug Labs team jconnolly 285 posts

You need to specify the direction of the IOX pin first:

this.getIVonHippelModuleControl().makeIOXOut(0); this.getIVonHippelModuleControl().setIOX(0); this.updateUI(this.getIAccelerometerSampleFeed().getSampleInputStream().readSample()); sleep(1000); this.getIVonHippelModuleControl().clearIOX(0); bugFrame.show();

May 19, 2010 4:50pm
User_img_not_found_05_med rawksolid 12 posts

Thanks for the details! By the way, how do you get your code formatted so nicely in the forum? :)

-pm

May 19, 2010 4:56pm
Medium Bug Labs team jconnolly 285 posts

When replying, use the highlighter button to the right:

created on: 05/19/10

Put your code in there, or select the code and then select the highlight button.  Choose the language you want to see it highlighted as.

Jun 28, 2012 2:23am
User_img_not_found_03_med louis 38 posts

http://www.louisvuittonusauks.co.uk/ louis vuitton bags

http://www.louisvuittonpurses-outlets.net/ louis vuitton Handbags Outlet

http://www.greatlouisvuittonbags.com/ louis vuitton purses

http://www.louisvuittonpursebags.net/ Louis Vuitton Purses

http://www.louisvuittononlineshops.org/ Cheap Louis Vuitton

http://www.officiallouisvuittonzone.net/ louis vuitton outlet

http://www.hermesoutletus.org/ hermes Purses

http://www.cheap-suprashoes.org/ cheap supra shoes

Jun 29, 2012 10:38pm
User_img_not_found_04_med huang 76 posts

http://www.officiallouisvuittonzone.net/ louis vuitton outlet
http://www.hermesoutletusa.org/ hermes bags
http://www.cheap-suprashoes.org/ supra shoes
http://www.louisvuittonusauks.co.uk/ Louis Vuitton UK
http://www.louisvuittonpurses-outlets.net/ louis vuitton handbags
http://www.greatlouisvuittonbags.com/ louis vuitton purses
http://www.louisvuittonpursebags.net/ Louis Vuitton Purses
http://www.louisvuittononlineshops.org/ Louis Vuitton Outlet Online