![]() |
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.
|
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!!! |
Put this before or after "analogWrite(BrightnessPin,brightness[brightnessIdx]); "
I figure after so you could see it do it. |
before, for the full effect :) You don't want to miss a millisecond of the splash screen after the light goes back on.
|
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 |
Cool, got a decent calibration number? I've been having trouble getting a consistent fill on the metro.
|
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.
|
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); |
add a:
holdDisplay=1; after printing the splash maybe. the delay statement might affect accuracy, in a really tiny way. |
holdDisplay=1; is still pretty quick. Less than 1 second.
|
Well, I need to re-check this some. This morning it did not pick up on VSS signal after putting this code in.
|
Set it to = 4? I'm guessing the holdDisplay is in secs?
|
Quote:
|
nope just a flag, though it might work if you change:
Code:
}else{ |
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 01:08 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com