mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
cc3200: Add alternate functions list to Pin object.
Also remove pin.high() and pin.low() methods.
This commit is contained in:
@@ -29,8 +29,8 @@ See :ref:`pyb.Pin <pyb.Pin>`. ::
|
||||
|
||||
# initialize GP2 in gpio mode (af=0) and make it an output
|
||||
p_out = Pin('GP2', mode=Pin.OUT)
|
||||
p_out.high()
|
||||
p_out.low()
|
||||
p_out.value(1)
|
||||
p_out.value(0)
|
||||
p_out.toggle()
|
||||
p_out(True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user