Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
![function-calling-diagram-steps](https://github.com/user-attachments/assets/6bccdd11-a87e-4b79-85d9-1a43e11005ea)
TerminalPython
==============

Expand Down
8 changes: 4 additions & 4 deletions TerminalPython.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,25 @@ def getch():
readser = 0
print(hello.rstrip())
print("Type in a 2 digit Bank Address - Press Enter")
writedata = raw_input()
writedata = input()
if len(writedata) == 2:
ser.write(writedata)
readser = 1
else:
print("Please re-enter the 2 digit hex Bank Address and press enter")
writedata = raw_input()
writedata = input()
readser = 1
elif hello.endswith(':'):
readser = 0
print(hello.rstrip())
print("Type in a 4 digit Address - Press Enter")
writedata = raw_input()
writedata = input()
if len(writedata) == 4:
ser.write(writedata)
readser = 1
else:
print("Please re-enter the 4 digit hex address and press enter")
writedata = raw_input()
writedata = input()
readser = 1
else:
print(hello.rstrip())
Expand Down