#Check to see if we have a message waiting from the Arduino
while ser.inWaiting():
#This should be set to the length of whatever fixed-length message
#you're sending from the arduino. It does not have to be the same length
#as the outbound messages.
key = ser.read(2)
#The Arduino generates two different key events
#One when the key is pressed down (+S) and another when it is released (-S)
#In this case we are going to ignore the release

# Include your customized HAL commands here
# This file will not be overwritten when you run stepconf again
# Include your customized HAL commands here
# This file will not be overwritten when you run stepconf again