tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit d9bf914a5cce81a77479e62658b96a89f4cf4b25
parent aba7a9841e3b74e00aa99c38fbac75cda34fb6d0
Author: rob <rob@tarina.org>
Date:   Tue, 16 May 2023 11:51:19 +0100

show button layout help on screen

Diffstat:
Mtarina.py | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -272,6 +272,14 @@ def main(): pressed, buttonpressed, buttontime, holdbutton, event, keydelay = getbutton(pressed, buttonpressed, buttontime, holdbutton) writemessage('peaking ' + str(peakshot)) overlay = removeimage(camera, overlay) + #SHOWHELP + elif pressed == 'showhelp': + vumetermessage('Button layout') + overlay = displayimage(camera, tarinafolder+'/extras/buttons.png', overlay, 4) + while holdbutton == 'showhelp': + pressed, buttonpressed, buttontime, holdbutton, event, keydelay = getbutton(pressed, buttonpressed, buttontime, holdbutton) + vumetermessage('Button layout') + overlay = removeimage(camera, overlay) #TIMELAPSE elif pressed == 'middle' and menu[selected] == 'TIMELAPSE': overlay = removeimage(camera, overlay) @@ -3680,6 +3688,8 @@ def getbutton(lastbutton, buttonpressed, buttontime, holdbutton): pressed = 'screen' elif (readbus2 == 245 and readbus == 127): pressed = 'showmenu' + elif (readbus2 == 245 and readbus == 251): + pressed = 'showhelp' elif event == 'I' or event == 'P' or (readbus2 == 245 and readbus == 247): pressed = 'insert' elif event == 'C' or (readbus2 == 245 and readbus == 254):