From 8c17d1d2cbebfb5f123ed835a28404565adb8d75 Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Sun, 10 Dec 2023 17:00:19 -0500 Subject: [PATCH] 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. --- README.md | 10 ++++++++++ Scripts/Lights-on-off-intervals.py | 4 ++++ Scripts/Onboard-LED-On.py | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 Scripts/Lights-on-off-intervals.py create mode 100644 Scripts/Onboard-LED-On.py diff --git a/README.md b/README.md index cf728b6..2d0319c 100644 --- a/README.md +++ b/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?

+Note 1: +

+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. +

+ +Note 2: +

+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. +

diff --git a/Scripts/Lights-on-off-intervals.py b/Scripts/Lights-on-off-intervals.py new file mode 100644 index 0000000..d0d97f9 --- /dev/null +++ b/Scripts/Lights-on-off-intervals.py @@ -0,0 +1,4 @@ +import machine +led = machine.Pin("LED", machine.Pin.OUT) +led.off() +led.on() \ No newline at end of file diff --git a/Scripts/Onboard-LED-On.py b/Scripts/Onboard-LED-On.py new file mode 100644 index 0000000..d0d97f9 --- /dev/null +++ b/Scripts/Onboard-LED-On.py @@ -0,0 +1,4 @@ +import machine +led = machine.Pin("LED", machine.Pin.OUT) +led.off() +led.on() \ No newline at end of file