improve README
This commit is contained in:
11
README.md
11
README.md
@ -27,11 +27,6 @@ Code example
|
||||
# write here what to do when t changes
|
||||
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
|
||||
|
||||
while True:
|
||||
@ -41,6 +36,12 @@ Code example
|
||||
# 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
|
||||
---------------
|
||||
|
||||
|
Reference in New Issue
Block a user