A few updates.

pigpio library is interesting, but I was using it sort of wrong.....here
is a new sbpd binary, its dynamically linked now.

https://dl.dropboxusercontent.com/s/745gzmr26t8ii35/sbpd

Requirements:
    
- pigpio.tcz - library and tools extension
- First start pigpiod with root access.  This self daemonizes, and
  there are no command line options.
- Then run sbpd as you normally would, except note the change in
  encoder setup.  I've added a detent mode, which will only increment
  based on a detent. (Assuming most encoders are 4 steps per physical
  detent)  This really smooths out the enocder increments. 
  


Code:
--------------------
    
  For rotary encoders (one, volume only):
  e,pin1,pin2,CMD[,mode]
  "e" for "Encoder"
  p1, p2: GPIO PIN numbers in BCM-notation
  CMD: Command. one of.
  VOLU for Volume
  TRAC for Prev/Next track
  mode: Optional. one of
  0 - Detent mode - Assumes 1 dial click is 4 steps.
  1 - Step mode (default)
  
--------------------



To your last question, the pigpio extension includes a program called
pigs which is a command line interface to the gpio.  It's a bit clunky,
but you can set and read pins through this command.....it requires the
pigpiod to be running.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer
------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=107001

_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to