improve README

This commit is contained in:
2025-05-16 16:36:45 +02:00
parent bce669a225
commit da62795b73

View File

@ -27,11 +27,6 @@ Code example
# write here what to do when t changes # write here what to do when t changes
return value # return the validated value return value # return the validated value
# the validity of <value> has to be checked here, and if any conversion happens
# the converted value has to be returned
# if no change function is present, the value is converted to the type of
# the initial value (e.g. float, int or str)
# here follows your real code # here follows your real code
while True: while True:
@ -41,6 +36,12 @@ Code example
# important: do not sleep here! # important: do not sleep here!
In the change_<xxx> function the validity of <value> has to be checked, and if any conversion
happens the converted value has to be returned. When no change function is present, the value
is converted to the type of the initial value (e.g. float, int or str)
Serial protocol Serial protocol
--------------- ---------------