Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 10-12-2008, 10:36 PM   #1 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 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.

__________________
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 10-12-2008, 10:44 PM   #2 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 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!!!
  Reply With Quote
Old 10-12-2008, 10:53 PM   #3 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 Posts
Put this before or after "analogWrite(BrightnessPin,brightness[brightnessIdx]); "
I figure after so you could see it do it.
__________________
  Reply With Quote
Old 10-12-2008, 10:56 PM   #4 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 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!!!
  Reply With Quote
Old 10-12-2008, 11:00 PM   #5 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 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.

__________________
  Reply With Quote
Old 10-12-2008, 11:04 PM   #6 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 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!!!
  Reply With Quote
Old 10-12-2008, 11:09 PM   #7 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 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.
__________________
  Reply With Quote
Old 10-12-2008, 11:41 PM   #8 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 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..
  Reply With Quote
Old 10-13-2008, 12:02 AM   #9 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 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!!!
  Reply With Quote
Old 10-13-2008, 12:20 AM   #10 (permalink)
Addicted
 
bbjsw10's Avatar
 
Join Date: Jul 2008
Location: Findlay,OH
Posts: 555

bbjsw10 - '91 Geo Metro Xfi
90 day: 51.06 mpg (US)
Thanks: 0
Thanked 11 Times in 7 Posts
holdDisplay=1; is still pretty quick. Less than 1 second.

__________________
  Reply With Quote
Reply  Post New Thread


Thread Tools




Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com