December 19, 2023, 10:17
Program is starting ... Program is starting ... Program is starting ... Program is starting ... Program is starting ... Program is starting ... Traceback (most recent call last): File "/home/Pi/Downloads/Newfolder/keypad.py", line 247, in <module> loop() File "/home/Pi/Downloads/Newfolder/keypad.py", line 221, in loop key = loop() ^^^^^^ File "/home/Pi/Downloads/Newfolder/keypad.py", line 221, in loop key = loop() ^^^^^^ File "/home/Pi/Downloads/Newfolder/keypad.py", line 221, in loop key = loop() ^^^^^^ [Previous line repeated 989 more times] File "/home/Pi/Downloads/Newfolder/keypad.py", line 217, in loop lcd.setCursor(0,0) # set cursor position ^^^^^^^^^^^^^^^^^^ File "/home/Pi/Downloads/Newfolder/Adafruit_LCD1602.py", line 100, in setCursor self.write4bits(self.LCD_SETDDRAMADDR | (col + self.row_offsets[row])) File "/home/Pi/Downloads/Newfolder/Adafruit_LCD1602.py", line 170, in write4bits self.pulseEnable() File "/home/Pi/Downloads/Newfolder/Adafruit_LCD1602.py", line 183, in pulseEnable self.GPIO.output(self.pin_e, False) File "/home/Pi/Downloads/Newfolder/PCF8574.py", line 67, in output self.chip.digitalWrite(pin,value) File "/home/Pi/Downloads/Newfolder/PCF8574.py", line 38, in digitalWrite self.writeByte(value) ^^^^^^^^^^^^^^^^^^^^^ File "/home/Pi/Downloads/Newfolder/PCF8574.py", line 26, in writeByte self.bus.write_byte(self.address,value) RecursionError: maximum recursion depth exceeded while calling a Python object ------------------ (program exited with code: 1) Press return to continue
py import gpio zero button = button(gpio pin) button.wait_for_press() <code here>