map buttons to computer keyboard

R
rotylee posted Aug 11, 03:46:

is there a a way to map the buttons to a PC keyboard keys.?

M
mirco posted Aug 12, 11:17:

Mybe you can connect a usb keybord

R
remi posted Aug 12, 12:22:

I think it wouldn't be too hard to implement (I was thinking about doing it but don't have time to)
But as for now, there are no way for samplerbox to know what you do with your keyboard.

R
rotylee posted Aug 12, 18:05:

i got two momentary switches

def Buttons():
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
global preset, lastbuttontime

i'm guessing it goes

http://www.raspberrypi-spy.co.uk/wp-content/uploads/2014/07/Raspberry-Pi-GPIO-Layout-Worksheet.pdf

one to pin 11 and one to pin 12 and the other side to ground 6,9 or 14

shows 18 used by pcm_clock , is that ok?

...

  (not published)
  I want to post as guest
 

Post