Hi everyone!
I just received my Timesquare watch today, everything works fine, but when I tried building the original firmware to test my ftdi, arduino gave me a lot of errors about variables in all the files that should be const instead of what those were...
Any idea of the origin of the problem?
Thanks for reading!
Timesquare Firmware Compilation
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- pburgess
- Posts: 4161
- Joined: Sun Oct 26, 2008 2:29 am
Re: Timesquare Firmware Compilation
Fetch the latest from Github, it should be good now.
Linux system, I'm guessing? This is some older code, and we've learned since then the Arduino compiler on Linux machines can be persnickety on certain variable declarations.
Linux system, I'm guessing? This is some older code, and we've learned since then the Arduino compiler on Linux machines can be persnickety on certain variable declarations.
-
- Posts: 8
- Joined: Sun Jun 01, 2014 3:45 am
Re: Timesquare Firmware Compilation
Hi!
All the errors I was getting are now gone, but I still get one:
And, yes, as you guessed, I'm using archlinux ^^
All the errors I was getting are now gone, but I still get one:
Is this an error from the AdafruitGFX library?/usr/share/arduino/libraries/Robot_Control/glcdfont.c:9:23: error: variable 'font' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static unsigned char font[] PROGMEM = {
^
And, yes, as you guessed, I'm using archlinux ^^
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Timesquare Firmware Compilation
You shouldn't be getting RobotControl files in your build. You have your libraries installed in the wrong location. You should not install them in the Arduino libraries folder. You must install them in a folder called 'libraries' in your sketchbook folder.
Please see our tutorial on Arduino Libraries
https://learn.adafruit.com/adafruit-all ... nstall-use
Please see our tutorial on Arduino Libraries
https://learn.adafruit.com/adafruit-all ... nstall-use
-
- Posts: 8
- Joined: Sun Jun 01, 2014 3:45 am
Re: Timesquare Firmware Compilation
RobotControl was included in the arduino package I installed, and yes I was a bit suprised since it's not included anywhere in the code :/
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Timesquare Firmware Compilation
Right - RobotControl is a standard Arduino library. and old version of Adafruit_GFX is also included in the distribution. That's how I know you don't have your libraries in the right place.
You need to create the libraries folder in your sketchbook folder, and make sure to download the latest Adafruit_GFX from github and put it in that folder
https://github.com/adafruit/Adafruit-GFX-Library
You need to create the libraries folder in your sketchbook folder, and make sure to download the latest Adafruit_GFX from github and put it in that folder
https://github.com/adafruit/Adafruit-GFX-Library
-
- Posts: 8
- Joined: Sun Jun 01, 2014 3:45 am
Re: Timesquare Firmware Compilation
It's working now, many thanks!
Please be positive and constructive with your questions and comments.