Home Forums Nazca Questions and Answers define pins in a loop Reply To: define pins in a loop


Hello Ronald,

Thanks for your quick reply. This is a very useful function.

Firstly, in my case, I should use


Secondly, I want to make it even easier, for example, using a loop to define all of the PIN together. This should be a basic function in Python. please check below wrong code.

for i in range (2):

#AttributeError: 'str' object has no attribute 'raise_pins'