Pages: [1]   Go Down
Author Topic: LedControl library not working with 1.0  (Read 979 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 222
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Just testing this library with the very basic function and this won't compile in 1.0.
Sample code works fine in .022

Does the library need to be updated for 1.0?


Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1250
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would imagine so...

have you done a search? to ensure it hasnt been updated/converted already?

Logged


0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is a little help:

ISSUE #1: ”BYTE” keyword is no longer supported, but it is not required with the new Serial.write command.

FIX: Replace Serial.print(val, BYTE); with Serial.write(val);

ISSUE #2: “wprogram.h” not found.  It has been renamed “Arduino.h”

Any other issues?
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 222
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I dont see any BYTE being used, so that doesnt look like is an issue..

There is an error:
wconstants.h does not exist

but I found this:

Migrating Libraries
If your sketch includes any libraries that have not been designed for 1.0 then you will need to change the library if it uses any of the old header files that have been replaced with the new Arduino.h file. If you include any of these libraries, change:
#include "wiring.h"
#include "WProgram.h"
#include "WConstants.h"
#include "pins_arduino.h"

To:

#include "Arduino.h"

It compiles now.
« Last Edit: February 27, 2012, 04:30:20 am by db2db » Logged

Pages: [1]   Go Up
Jump to: