uploading libraries 1.1 error

Related to the development libraries, released by Curt Binder
Post Reply
psyrob
Posts: 247
Joined: Thu Sep 01, 2011 8:44 pm

uploading libraries 1.1 error

Post by psyrob »

Coming late to uploading latest libraries, going from 1.09 to 1.1. I ran the wizard and am trying to upload, but I keep getting an error:

Arduino/Libraries\RA_CustomColors/RA_CustomColors.h:1 error expected unqualified-id before '.' token

Don't know what it means or what to do about it.
Thanks
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: uploading libraries 1.1 error

Post by rimai »

Something is wrong with that file.
Roberto.
psyrob
Posts: 247
Joined: Thu Sep 01, 2011 8:44 pm

Re: uploading libraries 1.1 error

Post by psyrob »

Thanks, but can suggest a course of action? Like over write or maybe post it here?
Image
psyrob
Posts: 247
Joined: Thu Sep 01, 2011 8:44 pm

Re: uploading libraries 1.1 error

Post by psyrob »

Here is the file:

. /*
* Copyright 2010 Curt Binder
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef __RA_CUSTOMCOLORS_H__
#define __RA_CUSTOMCOLORS_H__

#include <RA_Colors.h>

/*
Ability to completely customize all colors of the screen
To change an aspect of the screen, you simply need to change the color defined for the variable.
The variables are labeled intuitively. Please note that when changing the entire screen color
to another color, you must make sure that all the corresponding BG colors (background colors) match
otherwise you will have a non-consistent background screen. This is primarily the case when displaying
the main screen / homepage.

Also note that if you intend to change the colors, you will want to experiment to find a good color
combination. If the background color is changed, you will most likely need to alter all of the other
colors in order for the screen to be easily readable.

You can use any of the colors specified above OR you can specify your own colors in hex code.
The values can range from 0x00 to 0xFF. Most of the common colors are specified above, so the use
of your own hex code (number) is most likely not needed. If you want to see what the colors will look like,
on the ReefAngel Google Groups page is a Color Chart image that will show you the colors.
*/
#define T1TempColor COLOR_RED // Text color for the T1 temp probe (homescreen)
#define T2TempColor COLOR_CHOCOLATE // Text color for the T2 temp probe (homescreen)
#define T3TempColor COLOR_MEDIUMORCHID // Text color for the T3 temp probe (homescreen)
#define PHColor COLOR_SEAGREEN //originally 0x34, Text color for the PH probe (homescreen)
#define DPColor COLOR_SADDLEBROWN // Text color for Daylight PWM value (homescreen)
#define APColor COLOR_DARKSLATEBLUE //originally 0x49, Text color for the Actinic PWM value (homescreen)
#define CalibrateColor COLOR_RED // color of the PH calibration text values
#define ModeScreenColor COLOR_BLUE // color of the text on Feeding Mode, Water Change Mode and Version screens
#define DateTextColor COLOR_DARKOLIVEGREEN // color of the date on home screen
#define OutletBorderColor 0x54 // Border around the outlet box on home screen
#define OutletOnBGColor COLOR_LAWNGREEN // Outlet box background color when outlet is on (homescreen)
#define OutletOnFGColor COLOR_WHITE // Outlet box text (number) color when outlet is on (homescreen)
#define OutletOffBGColor COLOR_BLACK // Outlet box background color when outlet is off (homescreen)
#define OutletOffFGColor COLOR_WHITE // Outlet box text (number) color when outlet is off (homescreen)
#define BtnBorderColor COLOR_BLACK // OK & Cancel button border color (setup screens)
#define BtnActiveColor COLOR_GRAY // OK & Cancel button ACTIVE (selected) background color (seup screens)
#define BtnInactiveColor COLOR_LIGHTGRAY // OK & Cancel button INACTIVE (not selected) background color (setup screens)
#define SelectionBGColor COLOR_BLUE // Background color for selected items (Menu & Setup screens)
#define SelectionFGColor COLOR_WHITE // Foreground (text) color for selected items (Menu & Setup screens)
#define DefaultBGColor COLOR_WHITE // Default background color
#define DefaultFGColor COLOR_BLACK // Default text color
#define GraphDotLineColor 0x49 // color of the dotted line in the middle of the graph


#endif // __RA_CUSTOMCOLORS_H__
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: uploading libraries 1.1 error

Post by rimai »

You may have edited the file and save with that extra dot.
Erase it.
The very first character
Roberto.
psyrob
Posts: 247
Joined: Thu Sep 01, 2011 8:44 pm

Re: uploading libraries 1.1 error

Post by psyrob »

thank you!! Like a spec of dust in your eye...hard to find but annoying in its impact!! :)
Image
Post Reply