I have a rotary encode with a switch wired to my pisound micro. One pin connects to ground and the other to pin A29. Here’s my pisound-micro-mapper.json, trimmed to focus on the rotary encoder only:
{
"$schema": "https://blokas.io/json/pisound-micro-schema.json",
"version": 1,
"controls": {
"pisound-micro": {
"enc_sw": {
"type" : "gpio_input",
"pin" : [ "A29", "pull_up" ]
},
"enc_knob": {
"type" : "encoder",
"pins" : [ "B03", "pull_up", "B04", "pull_up" ]
}
},
"osc": {
"sendpd": {
"listen": "osc.udp://:8001",
"notify": "osc.udp://:8000",
"params": {
"enc_knob_osc": {
"path": "/encoder/knob",
"type": "i",
"low": -200,
"high": 200
},
"enc_sw_osc": {
"path": "/encoder/sw",
"type": "i"
}
}
}
}
},
"mappings" : [
[ "enc_knob_osc", "<->", "enc_knob"],
[ "enc_sw_osc", "<-", "enc_sw"]
]
}
The encoder knob works fine, but the switch doesn’t work. Am I doing something wrong here?