Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:53 16 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

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

Author Message
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 01:16pm 14 Sep 2025
Copy link to clipboard 
Print this post

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......
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1628
Posted: 03:25pm 14 Sep 2025
Copy link to clipboard 
Print this post

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
causality ≠ correlation ≠ coincidence
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1272
Posted: 03:43pm 14 Sep 2025
Copy link to clipboard 
Print this post

Here  the £ Symbol is &9C  CHR$(156)
'no comment
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 03:51pm 14 Sep 2025
Copy link to clipboard 
Print this post

  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?)
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1628
Posted: 04:28pm 14 Sep 2025
Copy link to clipboard 
Print this post

  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!
causality ≠ correlation ≠ coincidence
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8074
Posted: 06:51pm 14 Sep 2025
Copy link to clipboard 
Print this post

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. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1628
Posted: 07:17pm 14 Sep 2025
Copy link to clipboard 
Print this post

  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
causality ≠ correlation ≠ coincidence
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6302
Posted: 08:26pm 14 Sep 2025
Copy link to clipboard 
Print this post

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
VK7JH
MMedit
 
Print this page


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