Results 1 to 4 of 4
  1. #1
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default Classic Controller Working.

    So thank you MrOwnership for the efforts to help me, I finally got this working, I just went back and redid my coding for the original file and it worked, I do appreciate the help and I would also like to give you credit on the idea of this project and the diagram for the pin outs of the nunchuck as they are the same for the classic controller. So this basically toggles on and off just as much of a test, I am including the Wii Classic Controller file and the designation in which to put it in.

    Code:
    #include "Wire.h"
    #include "WiiClassic.h"
    const int ledA = 2;
    int ON = HIGH;
    int OFF = LOW;
    int ledB = ledA;
    int Maybe = LOW;
    
    WiiClassic wiiClassy = WiiClassic();
    
    void setup() {
      Wire.begin();
      Serial.begin(9600);
      wiiClassy.begin();
      wiiClassy.update();
        pinMode(ledA, OUTPUT);
    }
    
    void loop() {
      delay(100);
      wiiClassy.update();
      if (wiiClassy.aPressed()) {
        ledB = ON;
      }
      if (wiiClassy.bPressed()) {
        ledB = OFF;
      }
       digitalWrite(ledA, ledB);
    }



    For Win 7: C:\Program Files\Arduino\hardware\arduino\cores\arduino
    File for Wii Classic Controller DL: http://download1509.mediafire.com/29...g/WiiClassic.h

    1 Not allowed! Not allowed!
    Last edited by PvtRyan; 01-03-2014 at 11:34 AM.


    PS4 Profile:

  2. #2
    Banned

    Badge

    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
         User Info     Contact     Gamer ID
    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
    Gamer IDs

    Gamertag: CandyCrusher PSN ID: CandyCrusher

    Contact info:

    Youtube Channel: http://www.youtube.com/

    Default

    cool

    0 Not allowed! Not allowed!

  3. #3
    Wii U Section Moderator
    Computer Engineer
    MrOwnership's Avatar

    Badge

    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Maryland
    Posts
    1,435
    Points
    2,862
    Gamer IDs

    Steam ID: MrOwnership Wii Code: MrOwnership

    Default

    Glad to see you got it working.

    0 Not allowed! Not allowed!

  4. #4
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Quote Originally Posted by MrOwnership View Post
    Glad to see you got it working.
    Thanks, it seems the pin outs are the same which makes sense since they both work in a wiimote, now I may have my fun, I appreciate the help and now I have a nice if you want to do a project, I'll do it on the classic control, and you do yours on the nunchuck.

    0 Not allowed! Not allowed!


    PS4 Profile:

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:51 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.