logo

Crowdly

En el següent codi: import machine import time y12 = machine.Pin('Y12...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

En el següent codi:

import machine

import time

y12 = machine.Pin('Y12')

while True:

    time.sleep(1)

    y12(0 if y12() else 1)

la funció en negreta defineix un objecte Pin associat al Pin real 'Y12'

More questions like this

Want instant access to all verified answers on ad.uib.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!