Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : Need help to display '£' symbol on ST7796S (480x320) IPS display

Posted: 01:16pm
14 Sep 2025
Copy link to clipboard
WhiteWizzard
Guru

Can anyone help me resolve an annoying issue I am struggling to solve.

I simply want to display a '£' character on a ST7796S IPS display I have attached to a PicoMite RP2350B module (Peter's 64Pin DIL module). Using firmware V6.01.00b10

Connected to TeraTerm (via USB) and can use PRINT CHR$(163) to display a '£' character in TeraTerm.
However, no matter what FONT I use (and ideally needing FONT 3 for my application), when I use the TEXT.... command, I just see a blank character. Could be something to do with the ASCII value being greater than 128 maybe?

Love to hear from anyone who can help me display my '£' symbol using the TEXT command......
 
Posted: 03:25pm
14 Sep 2025
Copy link to clipboard
twofingers
Guru


Hi WW,
why do you think the pound sign is in the MMBasic character set?
Kind regards
Michael

The only currency symbols, AFAIK, are $ and €.
I think that's a job for embedded fonts.
Edited 2025-09-15 01:40 by twofingers
 
Posted: 03:43pm
14 Sep 2025
Copy link to clipboard
Martin H.
Guru


Here  the £ Symbol is &9C  CHR$(156)
 
Posted: 03:51pm
14 Sep 2025
Copy link to clipboard
WhiteWizzard
Guru

  twofingers said  Hi WW,
why do you think the pound sign is in the MMBasic character set?
Kind regards
Michael

The only currency symbols, AFAIK, are $ and €.
I think that's a job for embedded fonts.


At the command prompt (and connecting to PicoMite via TeraTerm), at the command prompt I can type PRINT CHR$(163) and the result is a ‘£’ symbol.
But when using TEXT…CHR$(163)  to be able to display it on the IPS module, I get a blank space.

Am I doing something silly (probably a limitation of CHR$ values greater than 127?)
 
Posted: 04:28pm
14 Sep 2025
Copy link to clipboard
twofingers
Guru


  WhiteWizzard said  
  twofingers said  Hi WW,
why do you think the pound sign is in the MMBasic character set?
Kind regards
Michael

The only currency symbols, AFAIK, are $ and €.
I think that's a job for embedded fonts.


At the command prompt (and connecting to PicoMite via TeraTerm), at the command prompt I can type PRINT CHR$(163) and the result is a ‘£’ symbol.
But when using TEXT…CHR$(163)  to be able to display it on the IPS module, I get a blank space.

Am I doing something silly (probably a limitation of CHR$ values greater than 127?)


From the manual:
  Quote  Font 3
16 x 24
All 95 ASCII characters A large font for HDMI versions and LCD panels.

Font 3 has only 95 characters!

The only characters for currencies, AFAIK, are $ and €.
Teraterm has its own (very different) character sets. They have nothing to do with what the LCD displays. It only displays what was received as an ASCII value.

@Martin: Thanks!
 
Posted: 06:51pm
14 Sep 2025
Copy link to clipboard
Mixtel90
Guru


It's all very annoying. There is no £ sign (or euro, of course) in the "true" ASCII character set and there never has been - it only has 7 bits and there weren't enough character spaces. Whenever you see it displayed on anything computer related it's a kludge of some sort. :)
 
Posted: 07:17pm
14 Sep 2025
Copy link to clipboard
twofingers
Guru


  Mixtel90 said  It's all very annoying. There is no £ sign (or euro, of course) ...

I think Daniel (Amnesia) had a similar problem some time ago. It involved German umlauts. The solution might be interesting for WW.
Regards
Michael
 
Posted: 08:26pm
14 Sep 2025
Copy link to clipboard
TassyJim
Guru


With FontTweak you can produce any font and any code-page you desire.
Using escape sequences, you can store the extended characters in 'normal' strings.

The problem will be matching the same code page that users have chosen in their terminal program.

Jim
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025