Digital Solutions
iDigole Buyer ProtectioniDigole Buyer
My shopping cart
0 Items:
Secure Checkout
Top Rated Plus
Visit Our Live Auctions
99.9% Customer's Satisfaction
Search store:
Forum : Digole Serial Display : 12864 LCD/OLED module :

 Search Forum.. 
 Creat New Topic   Reply 

12864 B/W StartScreen PNG Convertor (PHP)

 I Developed this code, to be able to convert images without using the digole script

It it a very straight forward script that needs GD2 library in PHP.

It opens IMG.png, and outputs output.bin. output.bin will be 1024 bytes to be sent directly to the screen ("SSS",0x00,0x04,Sendfile(output.bin))

IMG.png must be 128x64 and Black and White colors only.





//Programmer: Gregory Michalik



$im = imagecreatefrompng("IMG.png");






fputs($a,pack('H*', str_pad(base_convert($data, 2, 16), 2, "0", STR_PAD_LEFT)));




RE:12864 B/W StartScreen PNG Convertor (PHP)

If you use this code, please give credit.

Copyright Digole Digital Solutions, 2008-2021. All rights reserved.
Powered by Victor Sun