8000 Fixing variable error · sevvalmehder/RaspiJoy@b4b6b27 · GitHub
[go: up one dir, main page]

Skip to content

Commit b4b6b27

Browse files
author
Şevval MEHDER
authored
Fixing variable error
1 parent a989f8c commit b4b6b27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/RaspberrySide/connect.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
bottom_button = GPIO.input(17)
3131

3232
# Delay in seconds
33-
delay = 0.1
33+
delay = 0.5
3434

3535
# SPI constants
3636
spi_port = 0
@@ -48,10 +48,10 @@ def readChannel(channel):
4848

4949
def decimal2hex(num):
5050
# convert signed decimal number to hexadeicmal
51-
if number < 0:
51+
if num < 0:
5252
return hex((1 << 8) + num)
5353
else:
54-
return hex(number)
54+
return hex(num)
5555

5656
while True:
5757
# Read joysticks positions

0 commit comments

Comments
 (0)
0