Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 27, 2024, 12:38:17 00:38


Login with username, password and session length


Pages: 1 [2]  All
Print
Author Topic: MOVING MESSAGE DISPLAY  (Read 42566 times)
0 Members and 2 Guests are viewing this topic.
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #25 on: November 28, 2007, 04:50:13 16:50 »

I don't want to be abrasive, but You're using a hell of a lot of code for scrolling...
Never mind if it's LED:s or LCD:s. With less output hex-code You could drive a 16F84(without an UART) to communicate with RS232 to the PC.
I repeat my former generic code(Basic,C or whatever):

How many pixels is the display wide? say 160. If You want to start the scrolling from right to left(Unless Yoy're arabian), You have to define start= 160 + lenght of message

After everytime time the pixels are moving one position to the right, You blank it(clrearscreen) with a short delay to make it readable. Don't forget to make it a loop, so that a new blank sceen is updated with the a new message - 1 position. If You want to divide the message into x lines, You just give the the newline command (to the LCD or LED) inside the loop. Inside the loop You can give the different LED: or LCD:s brighter or different color or strange alphanumeric signs or foreign alphabetic signs. If this sounds strange, please revert, it seems to be a neverending story. Remember to do it in a loop, otherwise the message will not move rightwards
« Last Edit: November 28, 2007, 05:27:22 17:27 by robban » Logged

Code Warrior
bbarney
Moderator
Hero Member
*****
Offline Offline

Posts: 2429

Thank You
-Given: 405
-Receive: 545


Uhm? where did pickit put my mute button


« Reply #26 on: November 28, 2007, 05:15:19 17:15 »

If you know a better way than by all mean's post it.I think that's how most people get better at their coding by seeing diiferant example's and way's of doing the same thing.
Logged

Ever wonder why Kamikaze pilot's wore helmet's ?
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #27 on: November 28, 2007, 06:28:25 18:28 »

First of all.. I deserve to have a thank You just by finding the poast I think You're interested in:Searching is a mess at least to me!)
Hi!
Try this...

Generic code

Generic Basic Code
loop:
for POS X = (rightmost end of LED(orLCD) + lenght of message) to 0
Print at POS X, "Hello"    ' where POS X is the rightmost position of the LED or LCD(if You want it to scroll from right to left)
clearLCD                      ' choose whaterver suite You
delay                          ' here you put the desired delay to make Yr. message readable
POS X = (POS X - 1)
next
Goto loop(or jump downwards if You are satisfied with one display message, or want to display another line)

Haven't tested it, hope it works. There are several ways to skin a cat...
To connect the LCD to the PIC, use the manal... 
« Last Edit: November 28, 2007, 06:36:16 18:36 by robban » Logged

Code Warrior
cowwyland
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 5
-Receive: 1


« Reply #28 on: March 31, 2008, 04:10:48 04:10 »

Is anyone has alphanumeric hex code for matrix led 8x8 ?
we can easily find for 5x7. but i haven't find for 8x8.
Logged
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #29 on: March 31, 2008, 08:04:31 20:04 »

Is anyone has alphanumeric hex code for matrix led 8x8 ?
we can easily find for 5x7. but i haven't find for 8x8.

Hi cowwyland,
please look at this link (a post by egealtay):
http://www.sonsivri.com/forum/index.php?topic=4872.msg23678#msg23678

The attached (by egealtay) rar is contains also the hex and the pbp source for a 8x8 led matrix...
This is not from mine!

Hope this helps
zuisti

@robban
First of all.. I deserve to have a thank You just by finding the poast I think You're interested in:Searching is a mess at least to me!)
Hi!
Try this...

Generic code

Generic Basic Code
loop:
for POS X = (rightmost end of LED(orLCD) + lenght of message) to 0
Print at POS X, "Hello"    ' where POS X is the rightmost position of the LED or LCD(if You want it to scroll from right to left)
clearLCD                      ' choose whaterver suite You
delay                          ' here you put the desired delay to make Yr. message readable
POS X = (POS X - 1)
next
Goto loop(or jump downwards if You are satisfied with one display message, or want to display another line)

Haven't tested it, hope it works. There are several ways to skin a cat...
To connect the LCD to the PIC, use the manal... 

Dear robban!
Please tell me what PIC compiler has this high level instruction for a 7x5 led matrix:
Print at POS X, "Hello"

It's really interested for me (or you have a mistake?)
zuisti 
 
Logged
kyawmyo
Guest
« Reply #30 on: April 14, 2008, 08:15:27 08:15 »

How about using mikro basic built in function for LCD?
Logged
Pages: 1 [2]  All
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC