On branch main
Changes to be committed: modified: README.md new file: Scripts/Lights-on-off-intervals.py new file: Scripts/Onboard-LED-On.py Modified readme with additional notes. Started on a few scripts I'd like to take note of. At least showing on gitea.
This commit is contained in:
parent
047b8f1723
commit
8c17d1d2cb
10
README.md
10
README.md
@ -5,3 +5,13 @@
|
|||||||
This will be a staging spot for all my python scripts mostly. Hopefully use this to update pico w in the future possibly?
|
This will be a staging spot for all my python scripts mostly. Hopefully use this to update pico w in the future possibly?
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
Note 1:
|
||||||
|
<p>
|
||||||
|
Using thonny as my IDE for micropython on raspberry pi pico w.
|
||||||
|
First thing to know is main.py will auto start with pico. Then you can call your other python scripts as needed really.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Note 2:
|
||||||
|
<p>
|
||||||
|
Grounding the RUN terminal will reset the Pico. I've jumped run to a button and the other side of the button to ground. Easy clickable reset.
|
||||||
|
</p>
|
||||||
|
|||||||
4
Scripts/Lights-on-off-intervals.py
Normal file
4
Scripts/Lights-on-off-intervals.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import machine
|
||||||
|
led = machine.Pin("LED", machine.Pin.OUT)
|
||||||
|
led.off()
|
||||||
|
led.on()
|
||||||
4
Scripts/Onboard-LED-On.py
Normal file
4
Scripts/Onboard-LED-On.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import machine
|
||||||
|
led = machine.Pin("LED", machine.Pin.OUT)
|
||||||
|
led.off()
|
||||||
|
led.on()
|
||||||
Loading…
x
Reference in New Issue
Block a user