Hi, so i have tried to download a library from;Download | Wayne and Layne. Now I made a library folder in sketchbook and put the library in there. Now win I open arduino it says;
The library "VideoGameShieldLibraries-2012-09-01-2" cannot be used. Libraries names can only contain basic numbers and letters.
wait I got it. Now when I try and run the nunchuck demo this error appears;
Nunchuck does not have a name
/*
Arduino sketch to demonstrate interfacing with a Nintendo Wii Nunchuck. It will print the nunchuck information from P1 every second, to the serial terminal at 9600 baud.
Created by Adam Wolf and Matthew Beckler
Wayne and Layne, LLC - http://wayneandlayne.com/projects/video-game-shield/
Recent updates:
August 18, 2012 - Changed file extension to .ino for Arduino 1.0
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <i2cmaster.h>
#include <nunchuck.h>
Nunchuck nunchuck;
void setup()
{
nunchuck.begin(NUNCHUCK_PLAYER_1);
Serial.begin(9600);
}
void loop()
{
nunchuck.update();
Serial.println("Nunchuck values:");
Serial.println("Joystick:");
Serial.print("x: "); Serial.println(nunchuck.joy_x(), DEC);
Serial.print("y: "); Serial.println(nunchuck.joy_y(), DEC);
Serial.println("Accelerometer:");
Serial.print("x: "); Serial.println(nunchuck.acc_x(), DEC);
Serial.print("y: "); Serial.println(nunchuck.acc_y(), DEC);
Serial.print("z: "); Serial.println(nunchuck.acc_z(), DEC);
Serial.println("Buttons:");
Serial.print("c: ");
if (nunchuck.button_c())
{
Serial.println("pushed");
}
else
{
Serial.println("not pushed");
}
Serial.print("z: ");
if (nunchuck.button_z())
{
Serial.println("pushed");
}
else
{
Serial.println("not pushed");
}
delay(1000);
}
nunchuck_demo:26: error: 'Nunchuck' does not name a type
nunchuck_demo.cpp: In function 'void setup()':
nunchuck_demo:30: error: 'nunchuck' was not declared in this scope
nunchuck_demo:30: error: 'NUNCHUCK_PLAYER_1' was not declared in this scope
nunchuck_demo.cpp: In function 'void loop()':
nunchuck_demo:36: error: 'nunchuck' was not declared in this scope
I just went and installed the libraries. Examples compiles fine for me.
In your libraries folder did you leave the libraries in a "VideoGame"ShielLibraries" folder or did you just move the libraries into the folder individually?
what i have is ...\arduino-1.0.1\libraries\Nunchuck