hi
I have now managed to create custom characters for a 2x16 lcd and I can put several characters on the lcd at certain points but I cannot make them scroll, I don't know if im on the right track but do I need to convert the ASCII characters to strings ?? any help would be appreciated
custom characters
Moderator: Benj
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 25 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: custom characters
Hello,
There is a scroll function built into the display would this be any good for you? I think send command bytes 0x14 or 0x10 work to shift the display.
Other then that you can maybe add the custom characters to a sting by doing something like this.
str[0] = custom character code
str[1] = 'H'
str[2] = 'i'
str[3] = 0
The zero at the end signifies the end of the string.
There is a scroll function built into the display would this be any good for you? I think send command bytes 0x14 or 0x10 work to shift the display.
Other then that you can maybe add the custom characters to a sting by doing something like this.
str[0] = custom character code
str[1] = 'H'
str[2] = 'i'
str[3] = 0
The zero at the end signifies the end of the string.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 25 times
Re: custom characters
hi benj,
thanks for the reply but im still struggling to get the characters to scroll would it be possible to post a simple program to scroll 1 custom character so I could dissect it to gain understanding
thanks for the reply but im still struggling to get the characters to scroll would it be possible to post a simple program to scroll 1 custom character so I could dissect it to gain understanding
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: custom characters
Hi Bob,
Would you like me to integrate custom character into the Scroll one line V3 Flowcharts?
If so what will be the most characters within string to be scrolled?
Would you like me to integrate custom character into the Scroll one line V3 Flowcharts?
If so what will be the most characters within string to be scrolled?
Martin
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 25 times
Re: custom characters
hi martin I thinking of finding how to scroll one character then adding more when and as needed, and yes please
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: custom characters
Hi Bob,
This was a tough one.
I have modified flowchart so you can scroll one or more custom characters.
I have put two custom chars on for you so you can see how to add more than one custom character.
If you only want one then just change TotalCustonCharacters = 2 to TotalCustonCharacters = 1 and remove the C code .
As simple as that.
custom characters do not simulate in Flowcode.
You can only test this on hardware or third part simulator like Real pic simulator for example: There may be an easier way to scroll one line only, but I could not think of one.
Martin
This was a tough one.
I have modified flowchart so you can scroll one or more custom characters.
I have put two custom chars on for you so you can see how to add more than one custom character.
If you only want one then just change TotalCustonCharacters = 2 to TotalCustonCharacters = 1 and remove the
Code: Select all
FCD_LCDDisplay0_RAM_Write(1,14,31,0,10,0,17,14,0);
As simple as that.
custom characters do not simulate in Flowcode.
You can only test this on hardware or third part simulator like Real pic simulator for example: There may be an easier way to scroll one line only, but I could not think of one.
Martin
- Attachments
-
- Scroll one line V4 time int.fcf
- (18.42 KiB) Downloaded 379 times
Martin
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 25 times
Re: custom characters
hi martin,
perfect, I had to alter the time delay to 900ms and change the target pic to a 18f 4550 but other than that it works great in hardware, this will now give me the basis to experiment with putting custom characters on the top line and scrolling as well as the bottom I now have a platform to work from brilliant as always many thanks
perfect, I had to alter the time delay to 900ms and change the target pic to a 18f 4550 but other than that it works great in hardware, this will now give me the basis to experiment with putting custom characters on the top line and scrolling as well as the bottom I now have a platform to work from brilliant as always many thanks

-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: custom characters
Hi Bob,
Thanks for letting me know.
Martin
Thats great!siliconchip wrote: it works great in hardware, this will now give me the basis to experiment with putting custom characters on the top line and scrolling as well as the bottom I now have a platform to work from brilliant as always many thanks
Thanks for letting me know.
Martin
Martin