-
|
Hi there, I need to implement a simple task with 3 push buttons, and for that, I must use callback functions, ''self.hardware['POKES'].['PB1'].set_glitch_filter(23, 100)'' in advance thanks very much for your help. Regards ( as an aside, I didn't include the callback functions in the iteration cycle ) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
just by rereading the documents of GPIO class , I think the filter will work with adding PIG connection; so that the instruction should be; |
Beta Was this translation helpful? Give feedback.
-
|
makes me think GPIO should override something like def __getattr__(self, attr):
try:
return super(self).__getattr__(self, attr)
except AttributeError as e:
try:
return getattr(self.pig, attr)
except AttributeError:
raise e
|
Beta Was this translation helpful? Give feedback.
just by rereading the documents of GPIO class , I think the filter will work with adding PIG connection; so that the instruction should be;
''self.hardware['POKES'].['PB1'].pig.set_glitch_filter(23, 100)''