Okay, your problem is more clear now :)
I can't test now, but could you use something like:
procedure lcd_bold'put(byte in char) is
if ((char >= '0') & (char <= '9') then
// load the appropriate char here at location 0
lcd = 0
else
lcd = char
end if
end procedure
and then write to lcd_bold in stead of lcd.
Too bad you only have 8 custom chars and you need 10... You could
create a better performance if you use all 8 chars and remember which
ones are already loaded. This will need pic memory to rembember the
chars loaded and more complex code...
Joep
2010/5/5 vasile surducan <[email protected]>:
> Hi Joep,
>
> On Wed, May 5, 2010 at 2:53 PM, Joep Suijs <[email protected]> wrote:
>>
>> Hi Vasile,
>>
>> I never used this and that might be the reason II don't understand why
>> you want to switch.
>
> I have a 20x4 display where I print some info. Some info is constant, other
> is about process parameters. From the last, some must be more visible than
> others. Bold numbers looks better than normal numbers if critical
> information is displayed.
>
>>
>> What is confusting to me is '0' (=0x30) vs 0x00 is
>> confusting to me. It looks to me that the custom characters are always
>> available at character location 0x00-0x07, while 0x30 to 0x39
>> represent the characters '0' to '9'.
>> So lcd = '0' should give a zero
>> and lcd = 0 should show the first char you defined.
>
> Yes, that's OK. A custom character can share the same CGRAM memory if is
> written before printed (of course is spending a higher time) But I'm trying
> to use the available libraries (print and format) for this job and displayed
> message is a result of a math operation.
> thx,
>
>>
>> Joep
>>
>> PS This is pretty informative:
>>
>> http://solar-blogg.blogspot.com/2009/02/displaying-custom-5x8-characters-on.html
>>
>> 2010/5/5 vasile surducan <[email protected]>:
>> > Hi all,
>> > I want to use print and format libraries with custom defined numbers
>> > (0...9
>> > bold) on HD44780 compatible via lcd'put procedure and can't figure how.
>> > LCD
>> > has 8 CGRAM addresses location, meaning at least two numbers must be
>> > overdefined (defined every time before using them). This is OK, the
>> > problem
>> > is how do I switch the font table from 0x30...0x39 which represent the
>> > 0...9
>> > build in characters to 0x00 ...0x07 which are the newer CGRAM defined
>> > characters?
>> > thx,
>> > Vasile
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "jallib" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/jallib?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "jallib" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/jallib?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/jallib?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.