Libraries 0.8.5.15(16)

Related to the development libraries, released by Curt Binder
Post Reply
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Libraries 0.8.5.15(16)

Post by Bryan »

I have been playing with so many different sketches and libraries over the last couple days, that perhaps it is just me, but I can not get the menu to display on the display since upgrading to 0.8.15.15 or .16 libraries. At first I thought the switch on the joystick was defective, but after loading the RA preloaded code from Roberto with the standard libraries as a test, the menus work fine. Strange?

Cheers

-=Bryan=-
-=Bryan=-
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Libraries 0.8.5.15(16)

Post by rimai »

The easiest way to update libraries is using the libraries update utility:
http://forum.reefangel.com/viewtopic.php?f=8&t=2
Roberto.
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: Libraries 0.8.5.15(16)

Post by Bryan »

Yes, have done that, I have only one set of development libraries and they are in the default location where RAgen places them. But I wonder why the menu feature is not available.Clicking the joystick does not bring up any menus anymore?. Have tried #define simplemenu in the reefangel_features.h, still nothing. Strange.
-=Bryan=-
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Libraries 0.8.5.15(16)

Post by binder »

that is strange. I have never encountered that before. you can post or attach your pde file and features file and I can try it out and see if I can find something.

curt
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: Libraries 0.8.5.15(16)

Post by Bryan »

Thanks, will do a bit later, could it have anything to do with the controller requiring the bootloader?. I am not using the bootloader, programming straight to the ICSP header. Wouldn't think so, but perhaps.
-=Bryan=-
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Libraries 0.8.5.15(16)

Post by binder »

Bryan wrote:Thanks, will do a bit later, could it have anything to do with the controller requiring the bootloader?. I am not using the bootloader, programming straight to the ICSP header. Wouldn't think so, but perhaps.
Bootloader or not, shouldn't make a difference at all. Yeah, whenever you get a chance, post it or send it to me and I'll take a look during my "free" time (if such a thing exists ;) )

curt
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: Libraries 0.8.5.15(16)

Post by Bryan »

Hi Curt:

Tried a number of different sketches using RA tonight. None will bring up a menu. Here is a sample sketch that did not work. Unless I am mistaken, everything worked fine under 0.8.14. I thought all the overhead for the menus was in reefangel.cpp/.h
RA_072111_1835.cpp.zip
(29.01 KiB) Downloaded 463 times
Sketch

Code: Select all

// Autogenerated file by RAGen (v1.0.4.92), (07/21/2011 18:35)
// RA_072111_1835.pde
//
// This version designed for v0.8.5 Beta 12 or later

/* The following features are enabled for this PDE File: 
#define DisplayImages
#define SetupExtras
#define WavemakerSetup
#define OverheatSetup
#define DateTimeSetup
#define VersionMenu
#define ATOSetup
#define MetalHalideSetup
#define DirectTempSensor
#define DisplayLEDPWM
#define StandardLightSetup
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
    ReefAngel.Init();  //Initialize controller

    // Ports that are always on
    ReefAngel.Relay.On(Port8);
}

void loop()
{
    ReefAngel.ShowInterface();

    // Specific functions
    ReefAngel.StandardATO(Port1);
    ReefAngel.StandardLights(Port2);
    ReefAngel.MHLights(Port3);
    ReefAngel.Wavemaker1(Port4);
    ReefAngel.Wavemaker2(Port5);
    ReefAngel.StandardFan(Port6);
    ReefAngel.StandardHeater(Port7);
}

ReefAngel_Features.h

Code: Select all

// AutoGenerated file by RAGen (v1.0.4.92), (07/21/2011 18:35)

/*
 * 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 __REEFANGEL_FEATURES_H__
#define __REEFANGEL_FEATURES_H__


#define DisplayImages
#define SetupExtras
#define WavemakerSetup
#define OverheatSetup
#define DateTimeSetup
#define VersionMenu
#define ATOSetup
#define MetalHalideSetup
#define DirectTempSensor
#define DisplayLEDPWM
#define StandardLightSetup


#endif  // __REEFANGEL_FEATURES_H__

-=Bryan=-
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Libraries 0.8.5.15(16)

Post by binder »

I just tested with the latest and it works flawlessly for me. I haven't had any problems with the menu not displaying. I know it's not something you want to hear, but that's what I encountered.

You may want to try to switch to the standard libraries and then back to development libraries. To ensure you pull the latest code and it gets updated properly. Also make sure that you have Arduino closed when you update the libraries. It checks the libraries on startup and does not reload while it's open. So if there are any changes while it's open, you can get errors (unusual ones mind you) that are impossible to track down.

I know this isn't much to go on, but it's all that I've got for you right now.

curt
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: Libraries 0.8.5.15(16)

Post by Bryan »

It's a stumper, reinstalled Arduino, RaGen, and the latest libraries using the library update utility. Same thing, menus work fine with the preloaded code, but clicking the joystick does not bring up menus with the development libraries. I am sure i will get it figured out one way or the other.

One thing that does make me wonder is I have problems installing RaGen. Always gives me this error. Seems it can not write to the Program files directory, so I have to change the default installation to the root C:\ReefAngel Generator. Think it is a Windows 7 thing, shut off UAC settings but no difference.

Doubt the problem is related to my issue but never know.
Capture.PNG
Capture.PNG (43.38 KiB) Viewed 7758 times
-=Bryan=-
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: Libraries 0.8.5.15(16)

Post by Bryan »

I found the problem. If the LCD Timeout is set to 0, the menu's will not display with the joystick, changing it to anything other than 0 and it works fine. Perhaps the minimum setting in ReefClient memory settings needs to be >1 or the LCD locks.

Cheers
-=Bryan=-
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Libraries 0.8.5.15(16)

Post by rimai »

Good catch :)
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Libraries 0.8.5.15(16)

Post by binder »

Bryan wrote:I found the problem. If the LCD Timeout is set to 0, the menu's will not display with the joystick, changing it to anything other than 0 and it works fine. Perhaps the minimum setting in ReefClient memory settings needs to be >1 or the LCD locks.

Cheers
That is a good catch. I know that by default I don't give people the ability to change the LCD timeout unless you enable it. Also, the default setting is 600 seconds (5 minutes). I didn't think people would mess with it much at all. Anyways, suggestion/feedback is definitely noted.

Thanks!

curt
Post Reply