News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Universal Graphic Library

Started by atomix, Mar 09, 2022, 05:05 PM

Previous topic - Next topic

atomix

New Release.

Added new display - monochrome ST7565 128x64 ( https://aliexpress.com/item/1005001621784395.html )

Yves

Hi Atomix, where can I find the new code?

Many thanks,

Yves
Yves

atomix

New code in the first message.

Mapo

Atomix, beautiful work !!!

pjdenyer

Hi Atomix,

I am trying to compile your code on an 18F4550 with Xtal set to 48Mhz, but I just get compiler error but does not indicate where the error is. It does compile using the default 18F46K22, can you give me any indication as to what is going on.

atomix

see file "osc.inc" and comment the line -> $error "Require CPU frequency set manual."

atomix

New Release.

- Added definition of LCD_MOSI and LCD_MISO pins (thanks Ivano)
- Changed order of coordinates to Print At x,y
- Extended range of values by 0...480 in Print At x,y command

Ivano


Craig

#128
Hello Atomix

I have bought a Waveshare W13587, (4" TFT Touch Shield 320x480 - ILI9486 Driver ). If I select $define LCD_USE_TFT2_350_320_480 in the Example.inc file and save it then when I compile it gives an Error.
ERROR [Line13]: Input ended while scanning a comment or string! (example.inc)
https://www.waveshare.com/4inch-tft-touch-shield.htm

Could you Please tell me where to look to adjust these settings to sort out this error?
Thank you Atomix for such a Beautiful Library.

Kind regards
Craig

Pepe

I compiled the sample program and not any error

atomix

It also compiles without problems for me.

Try downloading the library from the first post.

And you must have the latest compiler version.

Craig

Thanks Pepe, Atomix I Re-downloaded the UGL and now it complies thank you!
Regards Craig
 

atomix

New Release.

- Starting from version 4.0.3.1, the cPtrXX commands have been changed in the Positron compiler, so the functions for working with them have been fixed.

JonW

Hi Atomix.

Has something changed in the library for print at command?
Am using the latest version of your library and the newest compiler. With a SSD1306 it prints the text on the same lines irrespective of the line number.

Verified it on a 128 x 32 physical display and in Proteus using your example

Thanks

Jon

Pepe

try changing row by column in print at

JonW

#135
That seems to work in the simulation.

Thanks Pepe, I don't know why I didn't try swapping the line and char position.. doh

Then noticed its in the update above.... getting old..

J


Craig

Hi is there a way to change the scaling size in the library. I have a ZJY169S0800TG01 , SPI display using a ST7789V2 with 240(RGB)x 280 Resolution.
It is working but, the scaling is out is there a way to set it in the Library? I have chosen the closest default size in the Library to it but it
is slightly out.
Kind Regards
Craig

atomix

You can try changing the description in the file "LCD_TFT_DRV.inc"

TBL_Raw(LCD_T_MAIN)     CData Word 240, Word 320, LCD_INI(0, 0, 0)

But if there are serious differences in working with your display, then you will have to completely write an initialization table for it.

But for now I don't have this display and I don't have time for it.

Craig

Thanks Atomix I will have to look at an Initialization table as it has Black & White Lines.

Craig

#139
Thank you Atomix for a Beautiful Library that is Truly Excellent. I am trying to make a bigger font like Arial 12 etc using GLCD Font Creator and it works fine but when I load the LangMF.exe   - https://langmf.ru/ftp/LangMF_setup.exe
Then Norton Antivirus Deletes it as a Threat, Is this file still safe for me to try and Run a Restore on it? 
Regards
Craig