Digole
©DIGITAL
SOLUTIONS

Serial Display emulator    New Display User manual

Forum login or
Login:
Password:
  
Forum Catagory
Digole Serial Display (210)
  12864 LCD/OLED module (24)
  24064 LCD module (3)
  Color LCD Modules (29)
  Color OLED module (20)
  Online Emulater (5)
  Universal GLCD module (1)
  Universal Text LCD module (2)
Mini Display Panels (0)
  Mini LCDs (0)
  Mini OLEDs (0)
Pattern Drive Module (0)
~Buy & Sell on Digole (2)
~Others~ (5)
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

Confused with the control codes

 Hi,

I have difficulties undestanding the control codes as outlined in the Serial Character/Graphic Users Manual.

I have an application for the Electric Imp that display the weather forecast from a website. I use the following code:

display.write("SF"); display.write(0x01);display.write(0x01);

to set the font, however it doesn't matter what value I use in the second display.write, the font size never change!

What am I doing wrong?

Thanks for your help

S.

RE:Confused with the control codes

preloaded font number is: 6,10,18,51,120,123,0(default), user font number is 200,201,202,203 maps to 4 user font memory sections, you can combine adjacent sections together is the font size >4kb(each section has 4kb in size)

The value of "0x01" you wrote is not a valid font, you can try: display.write("SF\x12"), to use the font of 18.

RE:Confused with the control codes

 Thanks, I tried, but still no changes.

It seems that only some of the control code are working, such as "CL", "TT", "TP"

Thanking you for your help.

S.

RE:Confused with the control codes

 Don't run "CL" clear screen command after "SF", it will reset it to default either, you can run "SF" after "CL".

"CL" command will reset any setting to default (such as font, color, position) and clear the screen.

RE:Confused with the control codes

 Many thanks, THIS WAS my error!

Cheers,

S.

Copyright Digole Digital Solutions/Digole Technologies Inc., 2008-2026. All rights reserved.
Powered by Digole