Improve comments
This commit is contained in:
parent
8d582058d2
commit
a51d4ffd43
21
src/main.py
21
src/main.py
@ -90,7 +90,7 @@ def bufferSTDIN():
|
||||
bufferNextIn = 0
|
||||
#
|
||||
# instantiate second 'background' thread on RD2040 dual processor to monitor and buffer
|
||||
# incomming data from 'stdin' over USB serial port using ‘bufferSTDIN‘ function (above)
|
||||
# incoming data from 'stdin' over USB serial port using 'bufferSTDIN' function (above)
|
||||
#
|
||||
bufferSTDINthread = start_new_thread(bufferSTDIN, ())
|
||||
|
||||
@ -108,24 +108,7 @@ def getByteBuffer():
|
||||
bufferNextOut = 0
|
||||
return (buffer[n]) # return byte from buffer
|
||||
|
||||
#
|
||||
#
|
||||
# main program begins here ...
|
||||
#
|
||||
# set 'inputOption' to either one byte ‘BYTE’ OR one line ‘LINE’ at a time. Remember, ‘bufferEcho’
|
||||
# determines if the background buffering function ‘bufferSTDIN’ should automatically echo each
|
||||
# byte it receives from the USB serial port or not (useful when operating in line mode when the
|
||||
# host computer is running a serial terminal program)
|
||||
#
|
||||
# start this MicroPython code running (exit Thonny with code still running) and then start a
|
||||
# serial terminal program (e.g. putty, minicom or screen) on the host computer and connect
|
||||
# to the Raspberry Pi Pico ...
|
||||
#
|
||||
# ... start typing text and hit return.
|
||||
#
|
||||
# NOTE: use Ctrl-C, Ctrl-C, Ctrl-D then Ctrl-B on in the host computer terminal program
|
||||
# to terminate the MicroPython code running on the Pico
|
||||
#
|
||||
|
||||
def unlockDoor():
|
||||
print("DO", end="")
|
||||
led.value(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user