10 lines
362 B
Python
10 lines
362 B
Python
# CUSTOM PERIODIC CODE, RUNS ONCE EVERY CYCLE
|
|
# see the file customizing.html for some tips
|
|
|
|
# example to create a file with all the widget names if a hal pin is not zero
|
|
#if comp['my-halbit']:
|
|
# widgets = get_all_children('.')
|
|
# with open('./widgets.txt', 'w') as outFile:
|
|
# for widget in sorted(widgets):
|
|
# outFile.write(f'{widget}\n')
|