10-12-2008, 10:36 PM
|
#1 (permalink)
|
|
Addicted
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555
Thanks: 0
Thanked 2 Times in 2 Posts
|
Hey, dcb Splash Screen question
Is there anyway to add a code to make splash screen come on at next "current" cycle? I just think it would be nice when you get in car and start to see a "Welcome" screen. I don't know if there is enough room to do this I know you are kinda to the max for size. Just wondering.
__________________
|
|
|
|
10-12-2008, 10:44 PM
|
#2 (permalink)
|
|
needs more cowbell
Join Date: Feb 2008
Location: ÿ
Posts: 5,032
Thanks: 156
Thanked 259 Times in 203 Posts
|
I probably won't add it to the project proper, and I can't guarantee you won't run out of resourses if you use it, but if you want to tinker I think after the "lastactivity" line might work:
i.e.
Code:
if(lastActivity == nil){//wake up!!!
LCD::gotoXY(0,0);
LCD::print(getStr(PSTR("OpenGauge ")));
LCD::gotoXY(0,1);
LCD::print(getStr(PSTR(" MPGuino v0.74")));
...
maybe make a splash function to do the lcd stuff and call that instead
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
|
|
|
|
10-12-2008, 10:53 PM
|
#3 (permalink)
|
|
Addicted
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555
Thanks: 0
Thanked 2 Times in 2 Posts
|
Put this before or after "analogWrite(BrightnessPin,brightness[brightnessIdx]); "
I figure after so you could see it do it.
__________________
|
|
|
|
10-12-2008, 10:56 PM
|
#4 (permalink)
|
|
needs more cowbell
Join Date: Feb 2008
Location: ÿ
Posts: 5,032
Thanks: 156
Thanked 259 Times in 203 Posts
|
before, for the full effect  You don't want to miss a millisecond of the splash screen after the light goes back on.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
|
|
|
|
10-12-2008, 11:00 PM
|
#5 (permalink)
|
|
Addicted
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555
Thanks: 0
Thanked 2 Times in 2 Posts
|
Dude, Thanks I am walking outside to pull and try it out. Will let ya know how it goes, and again thanks you have been a great help on this whole project.
Plus you helped me achieve this.

__________________
|
|
|
|
10-12-2008, 11:04 PM
|
#6 (permalink)
|
|
needs more cowbell
Join Date: Feb 2008
Location: ÿ
Posts: 5,032
Thanks: 156
Thanked 259 Times in 203 Posts
|
Cool, got a decent calibration number? I've been having trouble getting a consistent fill on the metro.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
|
|
|
|
10-12-2008, 11:09 PM
|
#7 (permalink)
|
|
Addicted
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555
Thanks: 0
Thanked 2 Times in 2 Posts
|
Getting closer, but keeps resetting (which I tried some different resistors today and so far no problems, crossing fingers), but same settings last week had my best trip in town at 38Mpg, so even if numbers aren't right. Definitely help. Once I get a good known number I will add to Wiki.
__________________
|
|
|
|
10-12-2008, 11:41 PM
|
#8 (permalink)
|
|
Addicted
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555
Thanks: 0
Thanked 2 Times in 2 Posts
|
Ok, well it works but goes by too fast, is there something I could add to hold that display for like 4 seconds or so?
Edit:I figured it out.
if(lastActivity == nil){//wake up!!!
LCD::gotoXY(0,0);
LCD:  rint(getStr(PSTR("OpenGauge ")));
LCD::gotoXY(0,1);
LCD:  rint(getStr(PSTR(" MPGuino v0.74")));
delay2(1500);
__________________
Last edited by bbjsw10; 10-13-2008 at 12:01 AM..
|
|
|
|
10-13-2008, 12:02 AM
|
#9 (permalink)
|
|
needs more cowbell
Join Date: Feb 2008
Location: ÿ
Posts: 5,032
Thanks: 156
Thanked 259 Times in 203 Posts
|
add a:
holdDisplay=1;
after printing the splash maybe.
the delay statement might affect accuracy, in a really tiny way.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
|
|
|
|
10-13-2008, 12:20 AM
|
#10 (permalink)
|
|
Addicted
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555
Thanks: 0
Thanked 2 Times in 2 Posts
|
holdDisplay=1; is still pretty quick. Less than 1 second.
__________________
|
|
|
|
|