Skip to content

Commit

Permalink
add DHT11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Rye committed Sep 28, 2022
1 parent e4474a6 commit f97601e
Show file tree
Hide file tree
Showing 7 changed files with 817 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode/
1 change: 1 addition & 0 deletions .picowgo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'info': 'This file is just used to identify a project folder.'}
8 changes: 8 additions & 0 deletions buttons.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import machine
import utime
onboard_led = machine.Pin(25, machine.Pin.OUT)
while True:
onboard_led.value(1)
utime.sleep(5)
onboard_led.value(0)
utime.sleep(5)
Empty file added main.py
Empty file.
8 changes: 1 addition & 7 deletions pico_rainbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
import st7789
from pimoroni import RGBLED

import time
import random
import st7789

# Set the display resolution, in most cases you can flip these for portrait mode
# WIDTH, HEIGHT = 240, 135 # Pico Display
WIDTH, HEIGHT = 240, 240 # Pico Display 2.0

display = st7789.ST7789(WIDTH, HEIGHT, rotate180=False)

display.set_backlight(0.1)
display = st7789.ST7789(width=WIDTH, height=HEIGHT, spi=3, reset=False, dc=5, backlight=4)


class Ball:
Expand Down
Loading

0 comments on commit f97601e

Please sign in to comment.