EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   OpenGauge / MPGuino FE computer (https://ecomodder.com/forum/opengauge-mpguino-fe-computer.html)
-   -   Hey, dcb Splash Screen question (https://ecomodder.com/forum/showthread.php/hey-dcb-splash-screen-question-5511.html)

bbjsw10 10-12-2008 10:36 PM

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.

dcb 10-12-2008 10:44 PM

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

bbjsw10 10-12-2008 10:53 PM

Put this before or after "analogWrite(BrightnessPin,brightness[brightnessIdx]); "
I figure after so you could see it do it.

dcb 10-12-2008 10:56 PM

before, for the full effect :) You don't want to miss a millisecond of the splash screen after the light goes back on.

bbjsw10 10-12-2008 11:00 PM

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.

http://i219.photobucket.com/albums/c...MpGuino001.jpg

dcb 10-12-2008 11:04 PM

Cool, got a decent calibration number? I've been having trouble getting a consistent fill on the metro.

bbjsw10 10-12-2008 11:09 PM

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.

bbjsw10 10-12-2008 11:41 PM

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::print(getStr(PSTR("OpenGauge ")));
LCD::gotoXY(0,1);
LCD::print(getStr(PSTR(" MPGuino v0.74")));
delay2(1500);

dcb 10-13-2008 12:02 AM

add a:
holdDisplay=1;

after printing the splash maybe.

the delay statement might affect accuracy, in a really tiny way.

bbjsw10 10-13-2008 12:20 AM

holdDisplay=1; is still pretty quick. Less than 1 second.

bbjsw10 10-13-2008 07:40 PM

Well, I need to re-check this some. This morning it did not pick up on VSS signal after putting this code in.

SVOboy 10-13-2008 09:44 PM

Set it to = 4? I'm guessing the holdDisplay is in secs?

bbjsw10 10-13-2008 09:45 PM

Quote:

Originally Posted by SVOboy (Post 67002)
Set it to = 4? I'm guessing the holdDisplay is in secs?

Tried it even set to 10 no change. Gonna have to read some on it.

dcb 10-13-2008 09:47 PM

nope just a flag, though it might work if you change:
Code:

    }else{
        holdDisplay=0;

to
      }else{
        if(holdDisplay != 0)
          holdDisplay--;

then holddisplay would be the number of 1/2 seconds to hold the splash screen.

SVOboy 10-13-2008 10:00 PM

Ah, okay. I didn't have time to go back and read through the code to see what it referred to, :)


All times are GMT -4. The time now is 08:38 PM.

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