olikraus / u8g2

U8glib library for monochrome displays, version 2
Other
4.91k stars 1.03k forks source link

How is linux port u8g2 updated? #2354

Open shlyakpavel opened 5 months ago

shlyakpavel commented 5 months ago

In order to use port code with new screens, I have to run codegen each time before build or commit and push codegen-generated changes to my local fork. Should the code be updated in this repo from time to time? I understanding 3rd party platforms are not the top proirity here, but syncing them for user convinience or at least documenting that one should run

make
make install 

inside the port codegen folder could save a lot of time for beginners

olikraus commented 5 months ago

Actually most of the ported code is not written by me. Ideally the ported code should provide the u8g2 callback functions. The other code should be taken from https://github.com/olikraus/u8g2/tree/master/csrc

As an example you could look at my st32g031 project here: https://github.com/olikraus/stm32g031/tree/main/u8g2_test_8

It only contains the specific callback function for that controller: https://github.com/olikraus/stm32g031/blob/main/u8g2_test_8/u8x8cb.c

The rest of the u8g2 library has to be added from https://github.com/olikraus/u8g2/tree/master/csrc

As a consequence you will always get the latest updates of the original u8g2 lib for Arduino.