Skip to content

Commit a5adcb4

Browse files
authored
Merge pull request #65 from fhoedemakers/WaveShareWII
Wii-classic controller now works with WaveShare RP2040-PiZero.
2 parents 49dfa44 + 970dbe4 commit a5adcb4

File tree

3 files changed

+56
-6
lines changed

3 files changed

+56
-6
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,30 @@ Binaries for each configuration and PCB design are at the end of this page.
1313

1414
# Release notes
1515

16+
## v0.18
17+
18+
### Features
19+
20+
- Wii-classic controller now works with WaveShare RP2040-PiZero. [#64](https://github.com/fhoedemakers/pico-infonesPlus/issues/64)
21+
22+
For this to work you need a [Adafruit STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets](https://www.adafruit.com/product/4397), a [Adafruit Wii Nunchuck Breakout Adapter - Qwiic](https://www.adafruit.com/product/4836) and a [Wii-classic controller](https://www.amazon.com/s?k=wii-classic+controller)
23+
24+
Connections are as follows:
25+
26+
| Nunchuck Breakout Adapter | RP2040-PiZero |
27+
| ---------------------- | ------------ |
28+
| 3.3V | 3V3 |
29+
| GND | GND |
30+
| SDA | GPIO2 |
31+
| SCL | GPIO3 |
32+
33+
34+
### Fixes
35+
36+
- none
37+
38+
# Release notes
39+
1640
## v0.17
1741

1842
### Features

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ elseif ( HW_CONFIG EQUAL 4 )
152152
set(NES_DATA_1 "12" CACHE STRING "Select the Data GPIO pin for second NES controller")
153153
set(NES_LAT_1 "11" CACHE STRING "Select the Latch GPIO pin for second NES controller")
154154
set(NES_PIO_1 "pio1" CACHE STRING "Select the PIO for second NES controller")
155-
set(WII_SDA "-1" CACHE STRING "Select the SDA GPIO pin for Wii Classic controller")
156-
set(WII_SCL "-1" CACHE STRING "Select the SCL GPIO pin for Wii Classic controller")
155+
set(WII_SDA "2" CACHE STRING "Select the SDA GPIO pin for Wii Classic controller")
156+
set(WII_SCL "3" CACHE STRING "Select the SCL GPIO pin for Wii Classic controller")
157157
endif ( )
158158

159159
# --------------------------------------------------------------------

README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can use it with these RP2040/RP2350 boards and configurations:
5252

5353
- [Waveshare RP2040-PiZero Development Board](https://www.waveshare.com/rp2040-pizero.htm)
5454

55-
For use with a USB gamecontroller or up to two legacy NES controllers. (No soldering requirerd)
55+
For use with a USB gamecontroller, up to two legacy NES controllers, or a WII classic controller. (No soldering requirerd)
5656

5757
You can 3d print your own NES-like case for for this board. This does require some soldering.
5858

@@ -92,6 +92,7 @@ Depending on the hardware configuration, the emulator supports these gamecontrol
9292
- BUFFALO BGC-FC801 connected to USB - not tested
9393
- Legacy Controllers
9494
- One or optional two original NES controllers.
95+
- WII-classic controller.
9596

9697
When using Legacy Controllers, you can choose between:
9798
* NES Controller. A second controller port and controller is optional and only needed if you want to play two player games using NES controllers. Two player games can also be played with a USB controller and a NES controller.
@@ -100,8 +101,9 @@ When using Legacy Controllers, you can choose between:
100101

101102
* WII-Classic controller
102103
* [Adafruit Wii Nunchuck Breakout Adapter - Qwiic / STEMMA QT](https://www.adafruit.com/product/4836)
103-
* [Adafruit STEMMA QT / Qwiic JST SH 4-pin Cable](https://www.adafruit.com/product/4210)
104-
* [WII Classic wired controller](https://www.amazon.com/Classic-Controller-Nintendo-Wii-Remote-Console/dp/B0BYNHWS1V/ref=sr_1_1_sspa?crid=1I66OX5L05507&keywords=Wired+WII+Classic+controller&qid=1688119981&sprefix=wired+wii+classic+controller%2Caps%2C150&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1)
104+
* Adafruit Feather RP2040: [Adafruit STEMMA QT / Qwiic JST SH 4-pin Cable](https://www.adafruit.com/product/4210)
105+
* Waveshare RP2040-PiZero Development Board: [STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets](https://www.adafruit.com/product/4397)
106+
* [WII Classic wired controller](https://www.amazon.com/s?k=wii-classic+controller)
105107

106108
***
107109

@@ -513,11 +515,27 @@ For two player games with two NES controllers you need an extra NES controller p
513515
| NES LATCH | GPIO9 | GPIO11| |
514516
| NES Data | GPIO6 | GPIO12| |
515517

518+
![Image](assets/nes-controller-pinout.png)
519+
516520
> [!NOTE]
517521
> Contrary to other configurations where VCC is connected to 3Volt, VCC should be connected to a 5Volt pin. Otherwise the NES controller could possibly not work.
518522
523+
#### WII-Classic controller.
519524

520-
![Image](assets/nes-controller-pinout.png)
525+
When using a WII-Classic controller you need:
526+
527+
- [Adafruit Wii Nunchuck Breakout Adapter - Qwiic / STEMMA QT](https://www.adafruit.com/product/4836)
528+
- [STEMMA QT / Qwiic JST SH 4-pin Cable with Premium Female Sockets](https://www.adafruit.com/product/4397)
529+
- [WII Classic wired controller](https://www.amazon.com/s?k=wii-classic+controller)
530+
531+
Connections are as follows:
532+
533+
| Nunchuck Breakout Adapter | RP2040-PiZero |
534+
| ---------------------- | ------------ |
535+
| 3.3V | 3V3 |
536+
| GND | GND |
537+
| SDA | GPIO2 |
538+
| SCL | GPIO3 |
521539

522540
### flashing the Waveshare RP2040-PiZero Development Board
523541
- Download **piconesPlusWsRP2040PiZero.uf2** from the [releases page](https://github.com/fhoedemakers/pico-infonesPlus/releases/latest).
@@ -550,6 +568,14 @@ Choose either of the following:
550568

551569
![Image](assets/2plwsrp2040.png)
552570

571+
### Image: Using a wii-classic controller
572+
573+
![WS-Wiiclassic](https://github.com/user-attachments/assets/d5a89389-6b19-42df-9071-f315b4bb1ee5)
574+
575+
![WS-Wiiclassic2](https://github.com/user-attachments/assets/4b4ba997-6e5a-4004-83e9-dfc71da89d03)
576+
577+
578+
553579
### 3D printed case for RP2040-PiZero
554580

555581
[DynaMight1124](https://github.com/DynaMight1124) designed a NES-like case you can 3d-print as an enclosure for this board. This enclosure is designed for 2 NES controller ports so you can play 1 or 2-player games. [Click here for the design](https://www.thingiverse.com/thing:6758682). Please contact the creator on his Thingiverse page if you have any questions about this case.

0 commit comments

Comments
 (0)