Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:52 02 Jan 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Nunchuk Problem?

Author Message
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 536
Posted: 11:43am 08 Dec 2020
Copy link to clipboard 
Print this post

I'm trying to get a feel for the nunchuk and have a Wii nunchuk plugged into the front panel. The following program works fine:

wii nunchuk open
do
 ? nunchuk(jx);@(120);nunchuk(jy)
' ? nunchuk(ax);@(120);nunchuk(ay);@(240);nunchuk(az)
loop until nunchuk(z)=1 or nunchuk(c)=1


but if I remove the apostrophe from line four, the program prints some zeroes and stops without me pressing anything. Is this working right? If so my understanding of the nunchuk function is way off. I thought it should print the xy coordinates of the analog stick then print the x,y,z coordinates of the orientation and loop until I press a button. Should it?
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026