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 | |
| import json | |
| import ssl | |
| import wifi | |
| import socketpool | |
| import board | |
| import busio | |
| import digitalio | |
| from adafruit_bme280 import basic as adafruit_bme280 | |
| import adafruit_minimqtt.adafruit_minimqtt as MQTT |
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 board | |
| import busio | |
| import time | |
| import random | |
| import digitalio | |
| NUM_PIXELS = 10 | |
| #For Pico | |
| #import neopixel |
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
| #include <Python.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include "piolib.h" | |
| #include "ws2812.pio.h" | |
| static PyObject* test(PyObject *self, PyObject *args) { |
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
| #include <Python.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include "piolib.h" | |
| #include "ws2812.pio.h" | |
| static PyObject* init(PyObject *self, PyObject *args) { |
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 machine | |
| import time | |
| import network | |
| import socket | |
| import urequests as requests | |
| import json | |
| ssid = 'YOUR_WIFI_SSID' | |
| password = 'YOUR_WIFI_PASSWORD' |
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
| #!/usr/bin/python3 | |
| #Originally be Alasdair Allen (see below), modified by Ben Everard 2023 | |
| # Copyright (c) 2022 Raspberry Pi Ltd | |
| # Author: Alasdair Allan <alasdair@raspberrypi.com> | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| # A TensorFlow Lite example for Picamera2 on Raspberry Pi OS Bullseye | |
| # |
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
| # SPDX-FileCopyrightText: 2023 John Park | |
| # | |
| # SPDX-License-Identifier: MIT | |
| # Ambient Machine inspired by Yuri Suzuki https://www.yurisuzuki.com/projects/the-ambient-machine | |
| import os | |
| import gc | |
| import board | |
| import audiocore | |
| import audiobusio | |
| import audiomixer |
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
| #!/usr/bin/python3 | |
| # Copyright (c) 2022 Raspberry Pi Ltd | |
| # Author: Alasdair Allan <alasdair@raspberrypi.com> | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| # A TensorFlow Lite example for Picamera2 on Raspberry Pi OS Bullseye | |
| # | |
| # Install necessary dependences before starting, | |
| # |
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
| const uint32_t blink[][4] = { | |
| { | |
| 0xf036c4f, | |
| 0x29f94f23, | |
| 0x6c0f0000, | |
| 66 | |
| }, | |
| { | |
| 0xf03cc5e, | |
| 0x2bf15e23, |
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
| [{"matrix":[[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,1,1,0,1,1,0,1,1,0,0],[0,1,0,0,1,1,1,1,0,0,1,0],[1,0,0,1,1,1,1,1,1,0,0,1],[0,1,0,0,1,1,1,1,0,0,1,0],[0,0,1,1,0,1,1,0,1,1,0,0],[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0]],"duration":66,"selected":false},{"matrix":[[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,1,1,1,1,0,0,1,1,0,0],[0,1,0,1,1,1,1,0,0,0,1,0],[1,0,1,1,1,1,1,1,0,0,0,1],[0,1,0,1,1,1,1,0,0,0,1,0],[0,0,1,1,1,1,0,0,1,1,0,0],[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0]],"duration":66,"selected":false},{"matrix":[[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,1,1,0,1,1,0,1,1,0,0],[0,1,0,0,1,1,1,1,0,0,1,0],[1,0,0,1,1,1,1,1,1,0,0,1],[0,1,0,0,1,1,1,1,0,0,1,0],[0,0,1,1,0,1,1,0,1,1,0,0],[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0]],"duration":66,"selected":false},{"matrix":[[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,1,1,0,0,1,1,1,1,0,0],[0,1,0,0,0,1,1,1,1,0,1,0],[1,0,0,0,1,1,1,1,1,1,0,1],[0,1,0,0,0,1,1,1,1,0,1,0],[0,0,1,1,0,0,1,1,1,1,0,0],[0,0,0,0,1,1,1,1,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0]],"duration":66,"selected":false},{"matrix":[[0,0 |
NewerOlder