Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:25 22 Nov 2024 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 : PicoMiteHDMIUSB motherboard reference design

     Page 7 of 7    
Author Message
mclout999
Guru

Joined: 05/07/2020
Location: United States
Posts: 469
Posted: 02:45am 06 Nov 2024
Copy link to clipboard 
Print this post

sorry repost.  I wish we could delete them.
Edited 2024-11-06 12:47 by mclout999
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2129
Posted: 03:24am 06 Nov 2024
Copy link to clipboard 
Print this post

Try pauses between each read, the hardware may need time to read the next value. Test various values to find the minimum.
Wii Nunchuck OPEN
P = 20 'pause length mS
Do
 Print DEVICE(NUNCHUCK C);
 Pause P
 Print DEVICE(NUNCHUCK Z);
 Pause P
 Print DEVICE(NUNCHUCK JX);
 Pause P
 Print DEVICE(NUNCHUCK JY)
 Pause P
Loop
 
mclout999
Guru

Joined: 05/07/2020
Location: United States
Posts: 469
Posted: 02:32pm 06 Nov 2024
Copy link to clipboard 
Print this post

  phil99 said  Try pauses between each read, the hardware may need time to read the next value. Test various values to find the minimum.
Wii Nunchuck OPEN
P = 20 'pause length mS
Do
 Print DEVICE(NUNCHUCK C);
 Pause P
 Print DEVICE(NUNCHUCK Z);
 Pause P
 Print DEVICE(NUNCHUCK JX);
 Pause P
 Print DEVICE(NUNCHUCK JY)
 Pause P
Loop


Thanks will do.  Next issue.  Matherp gave the labels for the inputs for the Nunchuck but not for the classic controller. I wanted to test those next.  The CMM3 Manual has a list of what he used there are those, right for the DEVICE(CLASSIC X)?

EDIT: even with this code I get the message to enter pin or 0 to restart when you break out of the program.  WHAT IS THAT and why is it happening?
Edited 2024-11-07 02:35 by mclout999
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4213
Posted: 03:57pm 06 Nov 2024
Copy link to clipboard 
Print this post

Hi,

The WII classic controller is documented in the 5.08.00 user manual (Geoff's site). Search for "WII" in the document. I think it is page 111.

All changes since then are in this writeup

summary of all changes

Thanks to tha hard work of Mixtel90

Volhout
Edited 2024-11-07 02:02 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6761
Posted: 04:40pm 06 Nov 2024
Copy link to clipboard 
Print this post

See manual 5.08.00 and later
DEVICE WII OPEN [,interrupt]
Opens a WII Classic controller and implements background polling of the
device. The Wii Classic must be wired to the pins specified by OPTION
SYSTEM I2C which is a prerequisite. Open attempts to talk to the Wii
Classic and will return an error if not found. If found the firmware will
sample the Wii data in the background at a rate of 50Hz. If an optional
user interrupt is specified this will be triggered if any of the buttons
changes (both on and off).
See the DEVICE function for how to read data from the Wii Classic.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
     Page 7 of 7    
Print this page


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

© JAQ Software 2024