Originally posted by sakos
View Post

/usr/local/sbin/sbpd -d -s e,23,24,VOLU,1 b,25,POWR,1
sbpd -v e,23,24,VOLU,1
sudo pigpiod -t [B]1[/B];sleep 0.1;sbpd -d -s b,5,POWR
sudo pigpiod -t [B]0[/B];sleep 0.1;sbpd -d -s b,5,POWR
sudo pigpiod -t 0;sleep 0.1; sbpd -d -s e,24,23,VOLU,2 b,25,POWR,2,0,PLAY,300 b,5,NEXT,2,0 b,12,PREV,2,0
pcp bu # save pcp config cd /mnt/mmcblk0p2/tce/optional wget http://downloads.sourceforge.net/project/picoreplayer/beta/sbpd.tcz.md5.txt wget http://downloads.sourceforge.net/project/picoreplayer/beta/sbpd.tcz md5sum sbpd.tcz # make sure the file downloaded correctly f0157164d10b86325b38fee0cb8d709e sbpd.tcz cat sbpd.tcz.md5.txt # does it match the line above? f0157164d10b86325b38fee0cb8d709e sbpd.tcz echo "sbpd.tcz" >> /mnt/mmcblk0p2/tce/onboot.lst pcp rb # you must reboot!
sbpd b,26,PLAY,1
wiringPiISR: Can't find gpio program wiringPiISR: unable to open /sys/class/gpio/gpio26/value: No such file or directory
dtoverlay=gpio-key,gpio=5,keycode=16 # KEY_q power dtoverlay=gpio-key,gpio=6,keycode=57 # KEY_SPACE play-pause dtoverlay=gpio-key,gpio=16,keycode=48 # KEY_b jump-forward
wiringPiISR: Can't find gpio program wiringPiISR: unable to open /sys/class/gpio/gpio26/value: No such file or directory
dtoverlay=gpio-key,gpio=5,keycode=16 # KEY_q power dtoverlay=gpio-key,gpio=6,keycode=57 # KEY_SPACE play-pause dtoverlay=gpio-key,gpio=16,keycode=48 # KEY_b jump-forward
Name: rotary-encoder Info: Overlay for GPIO connected rotary encoder. Load: dtoverlay=rotary-encoder,<param>=<val> Params: pin_a GPIO connected to rotary encoder channel A (default 4). pin_b GPIO connected to rotary encoder channel B (default 17). relative_axis register a relative axis rather than an absolute one. Relative axis will only generate +1/-1 events on the input device, hence no steps need to be passed. linux_axis the input subsystem axis to map to this rotary encoder. Defaults to 0 (ABS_X / REL_X) rollover Automatic rollover when the rotary value becomes greater than the specified steps or smaller than 0. For absolute axis only. steps-per-period Number of steps (stable states) per period. The values have the following meaning: 1: Full-period mode (default) 2: Half-period mode 4: Quarter-period mode steps Number of steps in a full turnaround of the encoder. Only relevant for absolute axis. Defaults to 24 which is a typical value for such devices. wakeup Boolean, rotary encoder can wake up the system. encoding String, the method used to encode steps. Supported are "gray" (the default and more common) and "binary".
dtoverlay=rotary-encoder,rotary0_2_a=keycode=103
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment