Just like this: You don't need to add any custom code to LCD component.
Just add code at the beginning of you program in the form of:
Code: Select all
FCD_LCDDisplay0_RAM_Write(Custom char number,row1 data,row2 data,row3 data,row4 data,row5 data,row6 data,row 7data,row 8data);
http://www.quinapalus.com/hd44780udg.html
Thanks to Steve for this link in his original Flowcode V3 Customized characters on the LC (http://www.matrixmultimedia.com/mmforum ... =26&t=4796)
Make sure 5x8 is selected!
There you will see a green rectangle which represents your LCD character.
(You will also see some more created custom characters).
Click on the parts of the green rectangle to create your custom character.
E.g for just the bottom line (1st character used in volume control Flowchart), just select the bottom line of rectangle: Notice the numbers in the 'In decimal:; window?
These are the ,row1 data,row2 data etc and what will will be using in the C code at the beginning of our flowchart.
The 1st custom character will be char 0, second will be 1, 3rd will be 2 etc this is what goes at the Custom char number part of C code just before the ,row data.
I just copied and pasted all the numbers. Its as simple as that.
So we now have all the information for the C code box:
For the thinnest line (lowest volume ):
Code: Select all
FCD_LCDDisplay0_RAM_Write(0,0,0,0,0,0,0,0,31);
For the two lines:
Code: Select all
FCD_LCDDisplay0_RAM_Write(1,0,0,0,0,0,0,31,31);
etc.
To display the custom character, Just use PrintASCII(custom character number) LCD component
E.g
Code: Select all
PrintASCII(0)
Important: Since custom characters use C code, then they will not simulate within Flowcode.
The only solution is to use either hardware of a simulator that works with hex files.
Image of LCD within this post is the Real Pic simulator which is loaded with a hex file generated by attached flowchart.
Also if you see and error message when compiling like this:
error: arguments of 'FCD_LCDDisplay0_RAM_Write' don't match the parameters of call
This is because there should be a total of 9 numbers.
The char number + 8 Data numbers. Check that 5 by 8 is selected and not 5 by 7.
Now you can see how easy it is to make custom LCD character your no longer restricted to character sets pre-loaded into LCDs.
I would recommend creating a maximum number of 31 as I believe anymore could interfere with the standard LCD characters.
Another example involving a 'Play' symbol can be found here:
http://www.matrixmultimedia.com/mmforum ... 982#p45592
Martin