Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull upstream #1

Merged
merged 72 commits into from
Mar 18, 2020
Merged

pull upstream #1

merged 72 commits into from
Mar 18, 2020

Conversation

marcmerlin
Copy link
Owner

No description provided.

hzeller and others added 30 commits February 26, 2019 19:46
* Give (not affiliated) seller for active board
* Provide pwm_dither_bits flag in python
* add gpio_slowdown parameter to c# binding
o Update PI model detection. Now detects Raspberry Pi 4 (fixes #840)
  and Rasberry Pi 3 A+ (fixes #727)
o If we can't mmap /dev/mem, fall back to /dev/gpiomem. Unfortunately,
  this will not allow to read the 1Mhz timer nor allow for PWM to work
  properly (fixes #680)
… unsupported offset.

Not only the PWM or 1Mhz counter regions are not supported, but /dev/gpiomem is
always failing silently: it always returns a memory region to GPIO but does not
verify its parameters.

Work around by only falling back to /dev/gpiomem if we request GPIO registers,
none of the others. Bail for the rest.

Filed raspberrypi/linux#3055 to fix the broken implementation
in the kernel.
In the course of that, update to current Kicad version.
…s explanation.

o It might be too easy to accidentally run as non-root and get degraded
  performance because the library fell back to worse choice of timers.
  Now, if we're set-up for using PWM hardware, but can't access it, explicitly
  fail and provide the choices that can make it work: either run as root
  or explicitly choose --led-no-hardware-pulse
o Update README about necessity running as root (and explain that non-root
  is possible with degraded performance).
* Add link to Node.js/TypeScript bindings
(based on pull request #879 with readability fixes)
This is mostly experimental at this point (I only have a single panel
to test, thanks @esden), so please let me know if this works for you.
It is modelled after the Python script that was shared on #746.

Right now, this is not abstracted yet for potential other panel types,
this will be added as we go.

(This works in C++ now. If someone needs this using Python, please update
the Python bindings and send a pull request for the new option).

Fixes #746 #807
Based on thread #823, in particular investigations by @rowanG077
and code by @mcpgza
hzeller and others added 29 commits February 10, 2020 22:49
Also make row-addr-type=4 work for 16 and 32 rows in case such thing
is implemented in any panel out there.
Set a canvas from a byte-buffer containing RGB or BGR pixels.
 o Allow to show images smaller or larger than canvas.
 o Allow to show it from an offset in the original canvas.
Add black bars where needed and center around that.

(#999 was mentioning change of aspect ratio).
Easier to see API use. Full example now in ../utils/text-scroller.cc.
  * Read frame header and content in one read() call, not separate.
  * Use posix_fadvise() to express intent to read sequentially.
Decoding requires to see key-frames, so we have to decode the frames
first before we consider them to skip.
@marcmerlin marcmerlin merged commit 1c51f89 into marcmerlin:master Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants