Buttons for folder selections
Started by Ari




6 posts in this topic
noek

39 posts 0 threads Joined: Jan 2021
08-03-21, 23:18 -
#2
Hi Ari,
OK, I'll give it a shot.

Starting with the buttons:
For wiring, first way is to wire like the original. This way we prevent confusion regarding the pin numbering.
Hans changed the numbering to ease support for other displays then the original one (that you have), so we can safely revert to the original two button setup.
So you wire it as on the .org instructions
For this, insert the SD in your PC and change the samplerbox/configuration.txt on the first (or only) partition of the inserted card. New text below, you'll find the original around approx at line 80-90 .
Code:
#     -- USE_BUTTONS --        ; A valid GPIO value will activate the button
BUT_incr=17                     ; Increase button, increases value/proceeds to next menu choice
BUT_decr=18                     ; Decrease button, opposite of above. In 3-button setup it will return from submenu
#BUT_sel=26                      ; Select button, either selects menu choice or returns to menu from value set
#BUT_ret=xx                      ; if this button is available, it returns to menu and the decr-button is consistent
Second way:
If you wired like Hans = according the picture on this (homspace) site, you only have to put the dash (=#) on the but_sel and but_ret lines similar to above.

Either way the buttons will do their job ... if activated, which is not default.
They can be activated in this same configuration.txt, so change
USE_BUTTONS = False
to
USE_BUTTONS = True

Now your display still  doesn't work as it is also not activated by default.
Similar to the the buttons, change:
USE_I2C_LCD = False
to
USE_I2C_LCD = True

Hope this helps
This post was last modified: 08-03-21, 23:20 by noek.


Messages In This Thread
Buttons for folder selections - by Ari - 08-03-21, 19:32
RE: Buttons for folder selections - by noek - 08-03-21, 23:18
RE: Buttons for folder selections - by Ari - 09-03-21, 09:14
RE: Buttons for folder selections - by Ari - 10-03-21, 14:02