finally have everything laid out on the table, hardware connected, but I
think I'm still missing something (and it may be from reading TOO much
in the thread).

Encoder 1 is connected to GPIO 17, GND, GPIO27, with button on GPIO22
and 3.3V
Encoder 2 is connected to GPIO5, GND, GPIO6, with button on GPIO13 and
3.3V

script it: ~/spd.sh


Code:
--------------------
    
  #!/bin/sh                                                                     
                                                                                
                                
  
  # start pigpiod daemon                                                        
                                                                                
                                
  
  pigpiod                                                                       
                                                                                
                                
  
  # give the daemon a moment to start up before issuing the sbpd command        
                                                                                
                                
  
  sleep 1                                                                       
                                                                                
                                
  
  # load uinput module, then set the permission to group writable, so you don't 
need to run sbpd with root permissions                                          
                                
  
  sudo modprobe uinput                                                          
                                                                                
                                
  
  sudo chmod g+w /dev/uinput                                                    
                                                                                
                                
  
  # issue the sbpd command                                                      
                                                                                
                                
  
  # This command will cause encoder to move selection right or left; 
Press=Enter; long press=down                                                    
                                           
  
  sbpd e,17,27,KEY:KEY_LEFT-KEY_RIGHT,4  
b,22,KEY:KEY_ENTER,4,0,KEY:KEY_DOWN,500                                         
                                                                       
  
--------------------
                                                                        




I get the following error:



Code:
--------------------
    
  tc@pCP:~$ ./spd.sh 
  2021-06-26 23:43:58 initCheckPermitted: 
  +---------------------------------------------------------+
  |Sorry, you don't have permission to run this program.    |
  |Try running as root, e.g. precede the command with sudo. |
  +---------------------------------------------------------+
  
  
  Can't initialise pigpio library
  sbpd: error while loading shared libraries: libcurl.so.4: cannot open shared 
object file: No such file or directory
  
  
  tc@pCP:~$ sudo ./spd.sh 
  2021-06-26 23:44:05 initInitialise: Can't lock /var/run/pigpio.pid
  Can't initialise pigpio library
  sbpd: error while loading shared libraries: libcurl.so.4: cannot open shared 
object file: No such file or directory
  tc@pCP:~$ 
  
--------------------


------------------------------------------------------------------------
ShaneC80's Profile: http://forums.slimdevices.com/member.php?userid=71859
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