Jump to content

Search the Community

Showing results for tags 'Wii Classic Arduino Joystick'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Atari Systems
    • Atari General
    • Atari 2600
    • Atari 5200
    • Atari 7800
    • Atari Lynx
    • Atari Jaguar
    • Atari VCS
    • Dedicated Systems
    • Atari 8-Bit Computers
    • Atari ST/TT/Falcon Computers
  • Classic Consoles
  • Classic Computing
  • Modern Consoles
  • Gaming General
  • Marketplace
  • Community
  • Community
  • Game Programming
  • Site
  • PC Gaming
  • The Club of Clubs's Discussion
  • I Hate Sauron's Topics
  • 1088 XEL/XLD Owners and Builders's Topics
  • Atari BBS Gurus's Community Chat
  • Atari BBS Gurus's BBS Callers
  • Atari BBS Gurus's BBS SysOps
  • Atari BBS Gurus's Resources
  • Atari Lynx Programmer Club's CC65
  • Atari Lynx Programmer Club's ASM
  • Atari Lynx Programmer Club's Lynx Programming
  • Atari Lynx Programmer Club's Music/Sound
  • Atari Lynx Programmer Club's Graphics
  • The Official AtariAge Shitpost Club's Shitty meme repository
  • The Official AtariAge Shitpost Club's Read this before you enter too deep
  • Arcade Gaming's Discussion
  • Tesla's Vehicles
  • Tesla's Solar
  • Tesla's PowerWall
  • Tesla's General
  • Harmony/Melody's CDFJ
  • Harmony/Melody's DPC+
  • Harmony/Melody's BUS
  • Harmony/Melody's General
  • ZeroPage Homebrew's Discussion
  • Furry Club's Chat/RP
  • PSPMinis.com's General PSP Minis Discussion and Questions
  • PSPMinis.com's Reviews
  • Atari Lynx 30th Birthday's 30th Birthday Programming Competition Games
  • 3D Printing Club's Chat
  • Drivers' Club's Members' Vehicles
  • Drivers' Club's Drives & Events
  • Drivers' Club's Wrenching
  • Drivers' Club's Found in the Wild
  • Drivers' Club's General Discussion
  • Dirtarians's General Discussion
  • Dirtarians's Members' Rigs
  • Dirtarians's Trail Runs & Reports
  • Dirtarians's Wrenching
  • The Green Herb's Discussions
  • Robin Gravel's new blog's My blog
  • Robin Gravel's new blog's Games released
  • Atari Video Club's Harmony Games
  • Atari Video Club's The Atari Gamer
  • Atari Video Club's Video Game Summit
  • Atari Video Club's Discsuuions
  • Star Wars - The Original Trilogy's Star Wars Talk
  • PlusCart User's Bug reports
  • PlusCart User's Discussion
  • DMGD Club's Incoming!
  • DASM's General
  • AtariVox's Topics
  • Gran Turismo's Gran Turismo
  • Gran Turismo's Misc.
  • Gran Turismo's Announcements
  • The Food Club's Food
  • The Food Club's Drinks
  • The Food Club's Read me first!
  • The (Not So) Official Arcade Archives Club's Rules (READ FIRST)
  • The (Not So) Official Arcade Archives Club's Feedback
  • The (Not So) Official Arcade Archives Club's Rumor Mill
  • The (Not So) Official Arcade Archives Club's Coming Soon
  • The (Not So) Official Arcade Archives Club's General Talk
  • The (Not So) Official Arcade Archives Club's High Score Arena
  • Adelaide South Australia Atari Chat's General Chat & Welcome
  • Adelaide South Australia Atari Chat's Meets
  • Adelaide South Australia Atari Chat's Trades & Swaps
  • KC-ACE Reboot's KC-ACE Reboot Forum
  • The Official Lost Gaming Club's Lost Gaming
  • The Official Lost Gaming Club's Undumped Games
  • The Official Lost Gaming Club's Tip Of My Tounge
  • The Official Lost Gaming Club's Lost Gaming Vault
  • The Official Lost Gaming Club's Club Info
  • GIMP Users's Discussion
  • The Homebrew Discussion's Topics

Blogs

There are no results to display.

There are no results to display.

Calendars

  • AtariAge Calendar
  • The Club of Clubs's Events
  • Atari BBS Gurus's Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website


Facebook


Twitter


Instagram


YouTube


eBay


GitHub


Custom Status


Location


Interests


Currently Playing


Playing Next

Found 1 result

  1. Since I was successful getting the Wii Nunchuk hooked up to the Joystick port I thought I would try the Wii Classic Controller (WCC). The hardware was simple, unplug the nunchuk attached to the Arduino project from my last blog and plug in the WCC. It was my poor choice of internet search criterial that gave me the most trouble. I just needed to find the function library for the WCC. The first search pointed me to “playground.arduino.cc/Main/WiiClassicController”. This is a library created by Tim Hizel in May of 2008. The library and example program worked as stated but only reported the buttons once or twice and then reset, even if the button was still pressed. I needed to be able to read the logic state while the button was pressed. Sooooo, it was back to the search engine. After a couple of days of half-hearted searching I decided that I would need to figure out why the button state reset and write my own library. But that night there was a Christmas Miracle. I found myself wide awake at 4:00AM. Mostly due to the excitement from the anticipation of Santa’s arrival. After all, only 14 days till Christmas. Anyway, I decided not to fight it and sat on the couch searching for the elusive library. I clicked on a search link and in a flash I was at “playground.arduino.cc/Main/WiiClassicController10” (see the difference?). This library is an exact replacement for Tim’s; written by Robbert Brandsman in 2012. It keeps the state of the buttons while they are pressed. Just what I needed. Now load the following sketch. Change the #include to point to the WiiClassicController10 library you downloaded. Upload it to the Arduino and you are ready to play any game that requires the joystick. The sketch uses the DPad for the direction control and the X or Y button for the trigger. I suppose if you got this far, you can modify the program to reflect your preferences. Atari_Wii_Classic.ino void setup(){ wiiClassy.begin(); wiiClassy.update(); pinMode(Up_Pin,OUTPUT); pinMode(Down_Pin,OUTPUT); pinMode(Left_Pin,OUTPUT); pinMode(Right_Pin,OUTPUT); pinMode(Trig_Pin,OUTPUT);}void loop() { delay(10); // 1ms is enough to not overload the wii Classic, 100ms seems to ease the serial terminal a little wiiClassy.update(); if (wiiClassy.upDPressed()) {digitalWrite(Up_Pin,HIGH); } else {digitalWrite(Up_Pin,LOW);} if (wiiClassy.downDPressed()) {digitalWrite(Down_Pin,HIGH); } else {digitalWrite(Down_Pin,LOW); } if (wiiClassy.leftDPressed()) {digitalWrite(Left_Pin,HIGH); } else {digitalWrite(Left_Pin,LOW); } if (wiiClassy.rightDPressed()) {digitalWrite(Right_Pin,HIGH); } else {digitalWrite(Right_Pin,LOW); } if(wiiClassy.xPressed() || wiiClassy.yPressed()) { digitalWrite(Trig_Pin,HIGH); } else {digitalWrite(Trig_Pin,LOW); } } I’ve been using the Atari Joystick for so long that while playing Missile Command with the WCC I noticed my left thumb was taping the DPad, as if it was a big red button. A reboot ain’t guna correct that problem.
×
×
  • Create New...