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

Oct 24, 2012 1:53am
User_img_not_found_01_med qazqazqaz 469 posts

As a perfect combination of classic and modern fashion,Coach Outlet Online Julia Bags can show the customers'unique personality.Tiffany UK grabbed the globe, stands out as the celeb on their favorite stars luxury type, granted an innovative simple move the pavement luxury, complete with luxury.In terms of the quality and superior design that make more and more customers are satisfied to Coach Factory Online.Welcome!hat experts claim Coach Outlet Online shopping is in the changes they are available in.As long as you open our Coach Factory Outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.On the date when the Louis Vuitton UK on sale, all people will pour into the stores. At this time, it on the booths will be wiped out, and only one or two days the seller will declare that there is no stock anymore.