Skip to content

Commit

Permalink
daily cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
baidarka committed Dec 9, 2023
1 parent d88baf8 commit 94c3c87
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ E.g. Thonny or VSCode.

For lookenspeepers, build this project and watschen der Blinkenlichten!

- Wire up your RaspberryPi Pico according to the Fritzing diagram.
- Wire up your RaspberryPi Pico according to the Fritzing diagram
- Optionally remove the resistor on GPIO2 to use an 8 minutes day/night cycle
- Save the script 'slag-in-de-rondte.py' to your Pico as 'main.py'
- Restart your Pico

Expand Down Expand Up @@ -78,16 +79,16 @@ A hollow pipe tool (Dutch: holpijp) is only needed if you want to punch holes in

![Hollow pipe tool](/img/holpijp.png)

| pin | pin name | in/out | description |
| --- | --- | --- | --- |
| 3 | GND | | ground |
| 4 | GPIO 2 | in | (future use) |
| 21 | GPIO 16 | out 3.3V | LED Texel |
| 22 | GPIO 17 | out 3.3V | LED Vlieland |
| 24 | GPIO 18 | out 3.3V | LED Terschelling |
| 25 | GPIO 19 | out 3.3V | LED Ameland |
| 26 | GPIO 20 | out 3.3V | LED Schiermonnikoog |
| 39 | VSYS | 5V | LED Red + Green Harlingen |
| pin | pin name | in/out | description |
| --- | --- | --- | --- |
| 3 | GND | | ground |
| 4 | GPIO 2 | in | disables night and day cycle |
| 21 | GPIO 16 | out 3.3V | LED Texel |
| 22 | GPIO 17 | out 3.3V | LED Vlieland |
| 24 | GPIO 18 | out 3.3V | LED Terschelling |
| 25 | GPIO 19 | out 3.3V | LED Ameland |
| 26 | GPIO 20 | out 3.3V | LED Schiermonnikoog |
| 39 | VSYS | 5V | LED Red + Green Harlingen |

CAUTION:
Drawing too much power from the board may damage the board.
Expand Down
4 changes: 3 additions & 1 deletion slag-in-de-rondte.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
ameland = PWM(Pin(19), f)
schiermonnikoog = PWM(Pin(20), f)

# Optionally, run without day&night cycle
# Optionally, run without night_n_day cycle
# - pin not grounded = night and day cycle of 8 minutes
# - pin grounded = continuously use LEDs
night_n_day = Pin(2, Pin.IN, Pin.PULL_UP)

# Coroutine: Flash a LED, once
Expand Down

0 comments on commit 94c3c87

Please sign in to comment.