olikraus / ucglib

Arduino True Color Library for TFTs and OLEDs
https://github.com/olikraus/ucglib/wiki
Other
261 stars 76 forks source link

Documentation: Supporting new devices. #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reference to a callback function (ucg_com_my_own_hal), independent of *_ilsoft 
function (ucg_dev_ssd1351_18x128x128_ilsoft), is made at 
http://code.google.com/p/ucglib/wiki/hal . However, no corresponding function 
is obvious in the codebase at present. Rather, the documented functionality 
seems implemented by the *_ilsoft function.

A related function, ucg_ext_ssd1351_18(), has been discovered to address only 
msg == UCG_MSG_DRAW_L90SE . This functionality does not seem critical, and may 
have previously been handled by ucg_dev_ssd1351_18x128x128_ilsoft() through 
ucg_dev_ic_ssd1351_18() .

Ultimately, the important function/procedure calls seem to take place in the 
following order, by example:
Ucglib4WireHWSPI --> Ucglib_SSD1351_18x128x128_HWSPI (Ucglib.h declaration) --> 
ucg_dev_ssd1351_18x128x128_ilsoft (ucg_dev_oled_128x128_ilsoft.c definition)

In other words, for device SSD1351, all essential hardware-abstraction-layer 
callback functionality seems handled by ucg_dev_ssd1351_18x128x128_ilsoft.

Original issue reported on code.google.com by spamfree...@gmail.com on 20 Jan 2015 at 11:13

GoogleCodeExporter commented 9 years ago
Please explain how the hardware-abstraction-layer addresses pixels, either 
individually or as groups.

Code relevant to messages UCG_MSG_DRAW_PIXEL, UCG_MSG_DRAW_L90FX, 
UCG_MSG_DRAW_L90TC, UCG_MSG_DRAW_L90SE (eg. http://pastebin.com/wj0c7ZjE) seem 
to used static sequences to set display position, which would not seem to draw 
a pixel or pattern to an arbitrary location.

Original comment by spamfree...@gmail.com on 21 Jan 2015 at 10:35

GoogleCodeExporter commented 9 years ago
Addressing seems to take place through a hook in ucg_com_SendCmdSeq. Test 
function added to address SEPS114A/USMP-P19801 pixels based in information 
passed through the ucg object.

http://pastebin.com/TzXAVwHp

Original comment by spamfree...@gmail.com on 22 Jan 2015 at 7:11

olikraus commented 9 years ago

Not an issue, closing