Replies: 2 comments 4 replies
-
|
I attach in this comment the JSON file that is used, as I don't know if I should specify the field of trigger ( of the Digital_In object ) any instructions that may make the process run |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
try and let me know if that works? note the lack of parentheses after toggle -- you're passing a reference to the method itself so that it can be called later, the parentheses call the method (which returns |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
while trying to simply toggle a LED by triggering a Digital In object(push button);
the pilot terminal throws an error about the PIN defined for the push button as it is not callable neither iterable;
I started from the blink script by adding ;
(
self.hardware['LEDS']['C'].set(1)
self.triggers['Pb'] = self.hardware['LEDS']['C'].toggle()
)
where Pb is defined in JSON as Digital_In object;
and LED C as Digital_Out object/
The error prevents me from assigning the trigger to do any action ; after careful review of the tasks and how you use a Digital_In object to trigger a Digital_Out one either using the object self.target(for both POKES,LEDS and PORTS as the Free water task ) or by directly assigning the PIN name like the one I did (like self.triggers['Pb'] ;['C']or ['E']);and after checking the JSON file, I am wondering what may cause the problem/as the problem refers to an error with the way the objects of the triggering event are defined;
Please find attached a screenshot of the error
in advance thanks very for your help
Regards

Beta Was this translation helpful? Give feedback.
All reactions