Hi.
import machine
machine.ACD(0) .... works properly but
machine.Pin(25, Pin.OUT) ... gives error as Pin is not defined
WHY?
but
from machine import Pin
Pin(25, Pin.OUT) .... works
It's confuses me totally.
Do you have an answer why the error emerges?
Thx in advance.
Search found 1 match
- Mon Nov 29, 2021 12:58 am
- Forum: Raspberry Pi microcontroller boards
- Topic: machine.Pin(25, Pin.OUT) instead Pin.(25, Pin.OUT) gives error
- Replies: 1
- Views: 4189