Go to advanced search

by evgueni
Wed Jun 19, 2019 8:46 am
Forum: Advanced users
Topic: In search of Buildroot + Kivy recipe
Replies: 4
Views: 465

Re: In search of Buildroot + Kivy recipe

Figured out that backlight and touchscreen support are already enabled. What was missing was a single line in board/raspberrypi2/genimage-raspberrypi2.cfg telling buildroot to copy the overlays folder across: "rpi-firmware/overlays", Touch input now works and "echo [0..255] > /sys/class/backlight/rp...
by evgueni
Mon Jun 17, 2019 11:28 am
Forum: Advanced users
Topic: In search of Buildroot + Kivy recipe
Replies: 4
Views: 465

Re: In search of Buildroot + Kivy recipe

Ok I am now further along with this, thanks to James Moore's excellent contribution https://groups.google.com/forum/#!searchin/kivy-users/buildroot/kivy-users/Es7dm3MDakM/OTqUk8PXBgAJ I am using Buildroot-2019.02.2. James Moore's patch is incorporated in Kivy 1.11.0, which I think is the last versio...
by evgueni
Thu Jun 13, 2019 12:45 pm
Forum: Advanced users
Topic: In search of Buildroot + Kivy recipe
Replies: 4
Views: 465

Re: In search of Buildroot + Kivy recipe

Thank you @topguy, you are right about that and I have been doing a lot of googling. The problem is that it takes such a long time to try out different combinations of packages (compilation time can be hours). There are further clues in Joseph Kogut's python-kivy patch (v5) that I turned up in my se...
by evgueni
Wed Jun 12, 2019 3:35 pm
Forum: Advanced users
Topic: In search of Buildroot + Kivy recipe
Replies: 4
Views: 465

In search of Buildroot + Kivy recipe

I am cross-compiling a custom linux using Buildroot and integrating Kivy with it as a custom package. Eventually I hope to strip back the build to a bare minimum in order to optimise for fast cold start into a Kivy app. I get as far as functional image with Kivy installed but even the simplest Kivy ...
by evgueni
Fri Oct 28, 2016 1:03 pm
Forum: Python
Topic: modyfying RPi.GPIO module - need sub-millisecond debouncing
Replies: 8
Views: 1382

Re: modyfying RPi.GPIO module - need sub-millisecond debounc

Just as an update, I have now integrated joan's suggestion for rotary encoder into my Kivy app and it works as well as it did standalone. Before that I had tested the code from Sunfounder (https://github.com/sunfounder/Sunfounder_SuperKit_Python_code_for_RaspberryPi/blob/master/08_rotaryEncoder.py) ...
by evgueni
Thu Oct 27, 2016 10:31 am
Forum: Python
Topic: modyfying RPi.GPIO module - need sub-millisecond debouncing
Replies: 8
Views: 1382

Re: modyfying RPi.GPIO module - need sub-millisecond debounc

That Python code will predate the glitch filter so you will be getting raw data. http://abyz.co.uk/rpi/pigpio/piscope.html will give a good indication of the bounce you get from the rotary encoder. Thank you joan once again, Piscope is very useful and shows that the cheap encoder produces cruddy qu...
by evgueni
Wed Oct 26, 2016 3:33 pm
Forum: Python
Topic: modyfying RPi.GPIO module - need sub-millisecond debouncing
Replies: 8
Views: 1382

Re: modyfying RPi.GPIO module - need sub-millisecond debounc

elParaguayo wrote:I'd just add that I use this pigpio code for my rotary encoders (which sound the same as yours) and the code works beautifully.
Thank you, I just happened to try it already earlier!
by evgueni
Wed Oct 26, 2016 3:00 pm
Forum: Python
Topic: modyfying RPi.GPIO module - need sub-millisecond debouncing
Replies: 8
Views: 1382

Re: modyfying RPi.GPIO module - need sub-millisecond debounc

Thank you joan, I have already tried your rotary encoder example and it works reliably in preliminary test, with default values for the glitch filter. Either by pure luck the default filtering is suitable, or the contact bounce that I see with the scope is not detected as such by RPi2. I couln't eas...
by evgueni
Wed Oct 26, 2016 9:37 am
Forum: Python
Topic: modyfying RPi.GPIO module - need sub-millisecond debouncing
Replies: 8
Views: 1382

modyfying RPi.GPIO module - need sub-millisecond debouncing

Good day all, I hope this is an easy question. I am using RPi2 with a mechanical rotary quadrature encoder (the inexpensive sort that are used as volume controls etc). The decoding is done in Python and I use the threaded callback of RPi.GPIO 0.6.2 for edge detection. After scoping the quadrature si...

Go to advanced search