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 comanda en negreta permet posar a 0 el pin exterior Y12 sempre que el seu valor sigui 1

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!