PDA

View Full Version : Splash screen...



sirvo
- 30th September 2007, 19:47
Hello everyone!

I was thinking about running a splash screen when I start LCD. It could be some flags or names or drawings, blinking things and etc.. Do you have anything available? Ideas?
This splash screen could take 2 or 3 seconds at most...

If you have something, please, can you show it?

Thanks in advance...

Regards.

mackrackit
- 30th September 2007, 20:29
http://www.picbasic.co.uk/forum/showthread.php?t=242&highlight=custom+characters

I think this is what you want.

Archangel
- 30th September 2007, 23:29
Hello everyone!

I was thinking about running a splash screen when I start LCD. It could be some flags or names or drawings, blinking things and etc.. Do you have anything available? Ideas?
This splash screen could take 2 or 3 seconds at most...

If you have something, please, can you show it?

Thanks in advance...

Regards.
Hi Silvio, not sure if mackracket covered your question or if question was how to implement, so if how to implement, it's easy, just lcdout after your defines pause 3 seconds and then follow with your main loop, like so:


DEFINE xxxxxxxxxxx
DEFINE yyyyyyyyyyyy
DEFINE >>>>>>>>>

LCDOUT "sylvio's flash message"
PAUSE 3000
lcdout $FE,1
LCDOUT $FE,2


loop: Do something
Do somethingMore
goto loop
end

sirvo
- 1st October 2007, 03:39
Hi Silvio, not sure if mackracket covered your question or if question was how to implement, so if how to implement, it's easy, just lcdout after your defines pause 3 seconds and then follow with your main loop, like so:


DEFINE xxxxxxxxxxx
DEFINE yyyyyyyyyyyy
DEFINE >>>>>>>>>

LCDOUT "sylvio's flash message"
PAUSE 3000
lcdout $FE,1
LCDOUT $FE,2


loop: Do something
Do somethingMore
goto loop
end


Hello!!

mackracket didnt covered what I wanted.. but thanks mackrackit!!!

Joe S... I have done something similar to what you have quote. The LCD is showing some messages before starting like "hello world" and stuffs like this..

BUT, what I really want is some animated splash screen, not only texts appearing... Got it? It can be blinking texts mixed with smiles or small cartoons or jokes or anything.....

I'm still all ears... Thanks for the attention...

Regards ..

Archangel
- 1st October 2007, 04:55
So then are you going to use a graphics display rather than a text type LCD? Or do you intend to use simple characters like in mackracket's post? Look at this:
http://www.sparkfun.com/commerce/product_info.php?products_id=8358

JS

mackrackit
- 1st October 2007, 16:42
Hi Silvio,

I should have explained what I was getting at. You can use custom characters for animation.
Here is an example of a smiley rolling right and left on an eight segment display.

The first part is a long way to write the code but you can see what is going on. (going right)
The second part is shortened up a bit. (going left)



CNT VAR BYTE 'DUMMY COUNT VAR
PL VAR BYTE 'POSITION VAR
CH VAR BYTE 'CHARACTER VAR

LCDOUT $FE,$40,$00,$0A,$0A,$00,$00,$11,$0E,$00 ' Cust Char #0
LCDOUT $FE,$48,$00,$08,$13,$10,$13,$08,$00,$00 ' Cust Char #1
LCDOUT $FE,$50,$0E,$11,$00,$00,$0A,$0A,$00,$00 ' Cust Char #2
LCDOUT $FE,$58,$00,$02,$19,$01,$19,$02,$00,$00 ' Cust Char #3

PAUSE 200

DISPLAY:

'THE LONG WAY. EACH COSTOM CHARACTER DISPLAYED_
'IN A NEW CELL GOING RIGHT

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$80,0

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$81,1

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$82,2

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$83,3

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$84,0

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$85,1

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$86,2

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$87,3

PAUSE 250
LCDOUT $FE,1
LCDOUT $FE,$88,0

'################
'NOW TO SAVE A LITTLE CODE SPACE_
'WILL ROLL BACK TO START

PL = $88
CH = 3
FOR CNT = 1 TO 8
PL = PL - 1
CH = CH - 1
PAUSE 100
LCDOUT $FE,1
LCDOUT $FE,PL,CH
IF CH = 0 THEN CH = 3
NEXT
'######
'MUCH SHORTER

GOTO DISPLAY

END

mister_e
- 1st October 2007, 18:43
I'll second the GLCD suggestion as long as you can't deal with the regular character LCD limitations.

Sure PBP command set don't support any GLCD type. You'll need to create your own GLCD driver. Sure it's not a really easy task, but once you have it, the whole thing look by far better than a simple character type LCD.

You may want to have a look at the followings...
http://www.compsys1.com/workbench/On_top_of_the_Bench/T6963C/t6963c.html
http://www.compsys1.com/workbench/Benchware/SED1330/sed1330.html
http://www.compsys1.com/workbench/On_top_of_the_Bench/KS0108/ks0108_controller.html