rm-hull / luma.examples

Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.emulator display drivers.
MIT License
367 stars 140 forks source link

modify sysinfo's font to local font on Rasperry Pi #155

Closed yoyojacky closed 2 years ago

yoyojacky commented 2 years ago
  1. change font to /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
  2. adjust the layout.
  3. adding some information, it's for mini tower kit series product.
yoyojacky commented 2 years ago

I have modified some code in luma.examples/examples/sys_info.py, have changed the local font and adjust layout and output position. adding uptime info and Host IP information.

thijstriemstra commented 2 years ago

hi @yoyojacky thanks for this PR.

I have modified some code

I don't see the modifications though, it seems the complete file was replaced, but looks like the line endings or something changed as well (?), causing the whole file to be included in the diff. Can you check what went wrong there?

yoyojacky commented 2 years ago

hi @yoyojacky thanks for this PR.

I have modified some code

I don't see the modifications though, it seems the complete file was replaced, but looks like the line endings or something changed as well (?), causing the whole file to be included in the diff. Can you check what went wrong there?

Oh, it is my bad, sorry for that, i am going to upload my new code for mini tower kit, so that the can using this code to build their own set-top. Thanks for your reply. let me check it and reset the PR.