PicoMite V6.00.02 release candidates - all versions


Author Message
mozzie
Guru

Joined: 15/06/2020
Location: Australia
Posts: 462
Posted: 09:39pm 07 May 2025      

G'day,

Volhout, hopefully this will help to diagnose your Wii controller / I2C issue.
I do not have a Wii controller but a PICOmite thats pretending it is one.

Peter, not sure if you are already working on this, you did mention a possible problem with the SDK...
I think there may be a problem with the background or transfer software for the Wii I2C system. It seems the I2C return data from the Wii is working its way up through memory until it over-writes something terminal.
Please see the photo below, the "WII" is incrementing byte 2 in the return variable and it is there in the pixel data, return data is &h0A,&h40,&hXX,&h00,&hFF,&hFF
Possibly the array address is not being reset and is continuing to increment? this where it goes over my head...

This is the code running on a HDMIUSB V6.00.02rc23

Option default integer
Option explicit
Option console serial

Wii open
Timer = 0
CLS

Do
Print DEVICE(wii ry), MM.I2C, Int(Timer / 1000)
Text 0,0,Str$(Int(Timer/1000))
Pause 500
Loop

End

This is what is on the screen, the number in the corner is seconds from Program start:





The "data" appears first, then coloured tiles, then coloured bars before it locks up (Mode 1), this was different runs. Starts at top left and works across and down.

This is fom the "Wii" PICO, it shows the lock up at approx 20mins every time.

> run
A420 0101 Sent   0
started @ 02:34:44
failed @ 02:54:34
> run
A420 0101 Sent   0
started @ 02:54:55
failed @ 03:14:31
> run
A420 0101 Sent   0
started @ 03:14:55
failed @ 03:34:27
>

> option list
PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02RC23
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION SYSTEM I2C GP20,GP21
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US, 0, 0, 600, 150
OPTION RESOLUTION 720x400 @ 283200KHz
OPTION DISPLAY 33, 90
OPTION SDCARD GP22, GP26, GP27, GP28
OPTION AUDIO GP10,GP11', ON PWM CHANNEL 5
OPTION RTC AUTO ENABLE
OPTION PLATFORM HDMIUSB
>

Hopefully this provides some diagnostic information, rc20 and rc21 are same.

Thanks again for all the work you put in to this, it is much appreciated.

Regards,
Lyle.