Store › Forums › Digit Shield › Bugs/Problems › WProgram.h: No such file or directory
Tagged: My system
- This topic has 10 replies, 5 voices, and was last updated 5 years, 3 months ago by ricykafory.
-
AuthorPosts
-
December 4, 2011 at 8:41 pm #470kwoMember
Hi,
I downloaded the DigitShield zip file and installed the library in my main Arduino libraries folder. When I open the “SetDirectExample” and compile, I receive the following error:
In file included from SetDirectExample.cpp:1:
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:18:22: error: WProgram.h: No such file or directory
In file included from SetDirectExample.cpp:1:
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:24: error: expected `)’ before ‘clock’
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:29: error: ‘boolean’ has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:30: error: ‘boolean’ has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:32: error: ‘boolean’ has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:36: error: ‘byte’ does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:39: error: ‘boolean’ does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:42: error: ‘boolean’ does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:43: error: ‘boolean’ does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:48: error: ‘boolean’ does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/DigitShield/DigitShield.h:49: error: ‘boolean’ does not name a typeI am using Arduino 1.0 on OSX. Would greatly appreciate any help? Thanks!
Karl
December 5, 2011 at 2:43 am #1259MichaelKeymasterYeah, Arduino 1.0 basically breaks most libraries. I’ll be publishing all new libraries for my products this week, but in the mean time, you can simply change the include in DigitShield.h from this:
#include "WProgram.h"
#includeto this:
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#include
#endifDecember 5, 2011 at 10:09 am #1261kwoMemberExcellent. I made the change and now everything compiles without errors. Thanks!
December 19, 2011 at 2:33 am #1311MichaelKeymasterFYI, I’ve updated all the libraries for Arduino 1.0…
March 10, 2014 at 12:39 am #1548dawidsekulaMemberHi. I have disame problem. I have Arduino version 1.0.5-r2. I download LedControl library and it doesn’t work. could You send me a link with good version of this library,and write what I must do with this ? please…
March 11, 2014 at 12:19 am #1551MichaelKeymasterWhat is the “LedControl” library? What do you mean by “doesn’t work”? You should be using the library for the Digit Shield, downloadable here: https://nootropicdesign.com/digitshield/
March 11, 2014 at 8:19 am #1550dawidsekulaMemberI have 8×8 led matrix.
March 11, 2014 at 12:52 pm #1553MichaelKeymasterThis is a support forum for the nootropic design Digit Shield.
April 3, 2014 at 6:43 pm #1908bedardcharlesMember@dawidsekula wrote:
Hi. I have disame problem. I have Arduino version 1.0.5-r2. I download LedControl library and it doesn’t work. could You send me a link with good version of this library,and write what I must do with this ? please…
Hi, i know this is the forum for nootropic design, but i have the exact same problem for the LedControl library, so if “dawidsekula” has found how to fix the problem i would be interested!
thank you!
April 4, 2014 at 11:25 am #1910MichaelKeymasterA simple google search would tell you to change WProgram.h to Arduino.h
August 10, 2019 at 9:30 am #11669ricykaforyParticipantLove to comment on Google it.
-
AuthorPosts
- You must be logged in to reply to this topic.