This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from machine import I2C | |
| from qwstpad import ADDRESSES, QwSTPad | |
| import plasma | |
| from random import randint | |
| # Setup the LED strip | |
| NUM_LEDS = 50 | |
| led_strip = plasma.WS2812( | |
| NUM_LEDS, color_order=plasma.COLOR_ORDER_RGB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from machine import Pin | |
| from time import sleep | |
| blue = Pin(4, Pin.OUT) | |
| red = Pin(5, Pin.OUT) | |
| while True: | |
| red.toggle() | |
| sleep(0.1) | |
| red.toggle() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import lte | |
| import time | |
| import requests | |
| from machine import Pin, PWM | |
| MOBILE_APN = "iot.1nce.net" | |
| # Setting this to True will attempt to resume an existing connection | |
| RESUME = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ICON news | |
| # NAME News Feed | |
| # DESC The latest news, direct to your Presto | |
| import requests | |
| from presto import Presto | |
| from picovector import PicoVector, ANTIALIAS_BEST | |
| from time import sleep | |
| import qrcode | |
| presto = Presto() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Tom's Hardware...on a Raspberry Pi Pico W</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"> | |
| <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.min.js" integrity="sha384-ODmDIVzN+pFdexxHEHFBQH3/9/vQ9uori45z4JjnFsRydbmQbmL5t1tQ0culUzyK" crossorigin="anonymous"></script> | |
| <style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import vlc | |
| import time | |
| # creating vlc media player object | |
| media_player = vlc.MediaPlayer() | |
| # The video that we wish to play | |
| media = vlc.Media("PiCast.mp4") | |
| # Loading up the video ready for playback | |
| media_player.set_media(media) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| current_time=$(date "+%Y.%m.%d-%H.%M.%S") | |
| echo "Current Time : $current_time" | |
| scrot -d 60 "${current_time}.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """BME688 / BME680 demo | |
| This demo will work for both the BME680 and BME688. | |
| """ | |
| import time | |
| from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE | |
| from pimoroni_i2c import PimoroniI2C | |
| import badger2040 | |
| import machine | |
| badger = badger2040.Badger2040() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is where you keep secret settings, passwords, and tokens! | |
| # If you put them in the code you risk committing that info or sharing it | |
| secrets = { | |
| 'ssid' : 'YOUR SSID', | |
| 'password' : 'YOUR PASSWORD', | |
| 'timezone' : 'YOUR LOCATION', # http://worldtimeapi.org/timezones | |
| } |
NewerOlder