PDA

View Full Version : MINI Robocontroller Libraries and Arduino 1.0



draikani
01-22-2012, 11:27 PM
I just updated to the latest release of the arduino IDE and it is not playing well with the libraries for the MiniRobocontroller. When I try to compile with the Motors library I get:

/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:23:20: error: wiring.h: No such file or directory
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp: In constructor 'Motors::Motors()':
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:33: error: 'OUTPUT' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:33: error: 'pinMode' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:41: error: 'LOW' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:41: error: 'digitalWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:43: error: 'analogWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:45: error: 'OCR0B' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:45: error: 'OCR0A' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp: In member function 'void Motors::left(int)':
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:52: error: 'LOW' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:52: error: 'digitalWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:53: error: 'TCCR0A' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:53: error: 'COM0B1' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:53: error: 'COM0B0' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:56: error: 'LOW' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:56: error: 'digitalWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:57: error: 'TCCR0A' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:57: error: 'COM0B1' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:58: error: 'COM0B0' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:60: error: 'HIGH' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:60: error: 'digitalWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:61: error: 'TCCR0A' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:61: error: 'COM0B1' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:61: error: 'COM0B0' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:66: error: 'OCR0B' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp: In member function 'void Motors::right(int)':
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:74: error: 'LOW' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:74: error: 'digitalWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:75: error: 'TCCR0A' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:75: error: 'COM0A1' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:75: error: 'COM0A0' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:78: error: 'LOW' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:78: error: 'digitalWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:79: error: 'TCCR0A' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:79: error: 'COM0A1' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:80: error: 'COM0A0' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:82: error: 'HIGH' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:82: error: 'digitalWrite' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:83: error: 'TCCR0A' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:83: error: 'COM0A1' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:83: error: 'COM0A0' was not declared in this scope
/Users/jeffreydamelio/Documents/Arduino/libraries/Motors/Motors.cpp:88: error: 'OCR0A' was not declared in this scope

This makes my robot and I sad. Any help is much appreciated, as usual if there is any extra info I can provide to speed up a solution please let me know!
Sorry for the error wall :happy:

lnxfergy
01-22-2012, 11:58 PM
A lot of things have changed in Arduino 1.0. We will have an Arduino-1.0 compatible release shortly, but it's not yet ready.

-Fergs

draikani
01-23-2012, 12:03 AM
Awesome Thanks!

iBot
01-23-2012, 03:34 AM
One of the 1.0 changes was that wiring.h is no longer used and now you need to use arduino.h instead.
This is the error you have right now. You need to replace

#include <wiring.h>

with

#include <Arduino.h>

in the libraries which show the error.

May be best to use earlier version of Arduino for now.