Topic

Micropython turns on a light
By: Carl Karsten
Date: Nov. 10, 2022, 6:30 p.m.

 

 

Last time I talked about Micropython I didn't show any code. 

This time I have code:

>>> from machine import Pin
>>> p=Pin("D13", Pin.OUT)
>>> p.value(1)

That turns on an LED.  We will talk about what that means, how it happens and the implications of this is the software that makes electronics happen.

There are a few more lines of the same nature: check the state of a switch gives is the I in IO.  For extra credit, we will ...