![]() |
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 KingdomPosts: 2948 |
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: GermanyPosts: 1628 |
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: GermanyPosts: 1272 |
Here the £ Symbol is &9C CHR$(156) 'no comment |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2948 |
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: GermanyPosts: 1628 |
From the manual: 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 KingdomPosts: 8074 |
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: GermanyPosts: 1628 |
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: AustraliaPosts: 6302 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |