This file contains 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: 2024 Paulus Schulinck | |
# | |
# SPDX-License-Identifier: MIT | |
############################### | |
""" | |
Platform: Lolin S3 PRO. | |
Attached hardware: | |
a) on-board: 32GB microSDCard (SPI); | |
b) external: Lolin 2.13inch Lolin e-Paper 3-color display, 250x122px (SPI); | |
c) external: Adafruit Gamepad QT (seesaw system) (I2C). |
This file contains 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
/* | |
* ----------------------------------------------- | |
* Originally published by Mogsdad@Stackoverflow | |
* Modified for jarkomdityaz.appspot.com | |
* Adapted for use on an Arduino Nano RP2040 Connect. | |
* 2022-08-01 adapted for use on an Adafruit MAGTAG datetime script by @Paulskpt Github. | |
* 2024-04-17 adapted for use on a Raspberry Pi. Added column D for board_id | |
* 2024-04-17 Created a new deployment (nr 8) | |
* 2024-04-20 Created a new deployment (nr 1) (used to call this script directly from a Python script without use of pushingbox.com) | |
* Note that in the deployment the Authorization has to be set to "anyone" because when it is set to "myself" send request from another device than |
This file contains 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
/* | |
* ----------------------------------------------- | |
* Originally published by Mogsdad@Stackoverflow | |
* Modified for jarkomdityaz.appspot.com | |
* Adapted for use on an Arduino Nano RP2040 Connect. | |
* 2022-08-01 adapted for use on an Adafruit MAGTAG datetime script by @Paulskpt Github. | |
* 2024-04-17 adapted for use on a Raspberry Pi. Added column D for board_id | |
* 2024-04-17 Created a new deployment (nr 8) | |
* ----------------------------------------------- | |
* |
This file contains 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: 2024 Paulus @PaulskPt on Github | |
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
# SPDX-FileCopyrightText: 2023 Kattni Rembor for Adafruit Industries | |
# SPDX-License-Identifier: MIT | |
""" | |
This is a Python script to test: | |
A Raspberry Pi 5B-8GB single board computer with, via I2C, connected: | |
a) an Adafruit Mini I2C Gamepad with seesaw - STEMMA QT / Qwiic (https://www.adafruit.com/product/5743); | |
b) an Adafruit AHT20 Temperatur & Humidity Sensor Breakout Board - STEMMA QT / Qwiic (https://www.adafruit.com/product/4566). | |
Added functionality to save data to two separate log files: |
This file contains 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: 2024 Paulus Schulinck | |
# | |
# SPDX-License-Identifier: Unlicense | |
# Tested on board: Adafruit MAGTAG (ID: 4800) | |
def is_usb(): | |
# Test if we're connected to USB | |
# If an error occurs we are on USB | |
ret = False | |
try: | |
from storage import remount |
This file contains 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
/* | |
* ----------------------------------------------- | |
* Originally published by Mogsdad@Stackoverflow | |
* Modified for jarkomdityaz.appspot.com | |
* Adapted for use on an Arduino Nano RP2040 Connect. | |
* 2022-08-01 adapted for use on an Adafruit MAGTAG datetime script by @Paulskpt Github. | |
* ----------------------------------------------- | |
* | |
* GET request query: | |
* https://script.google.com/macros/s/<id>/exec/?date=$date&temp=temp&hum=hum$* |
This file contains 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: 2024 Paulus Schulinck | |
# | |
# SPDX-License-Identifier: MIT | |
############################### | |
""" | |
Platform: Lolin S3 PRO. | |
Attached hardware: | |
a) on-board: 32GB microSDCard (SPI); | |
b) external: Lolin 2.13inch Lolin e-Paper 3-color display, 250x122px (SPI); | |
c) external: Adafruit Gamepad QT (seesaw system) (I2C). |
This file contains 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
""" | |
Platform: Pimoroni Pico DV Demo Base (PIM588) + Pimoroni Pico Lipo board 16MB (PIM560) (RP2040) | |
Date: 2021-08-24 | |
System flashed: adafruit-circuitpython-pimoroni_picolipo_16mb-en_GB-7.0.0-beta.0.uf2 | |
This script is to test the functionality of the 'board.USER_SW' which I, @paulsk, happened to discover | |
during a REPL session, after issuing 'import board' followed by 'dir(board)'. | |
In the list of resulting functions/classes was: 'USER_SW'. | |
The command: 'dir (board.USER_SW)' results in: ['__class__']. |
This file contains 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
# _*_ coding: utf-8 _*_ | |
# SPDX-FileCopyrightText: 2024 Paulus Schulinck | |
# | |
# SPDX-License-Identifier: MIT | |
############################## | |
# NOTE: Blinka and other prerequisites have to be installed on the Raspberry Pi | |
# See: https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi | |
# Also: before running this script, activate the venv environment as explained in the Adafruit article. | |
# This script is tested on a Raspberry Pi 5B-8GB and an Adafruit Gamepad QT (product ID 5743), | |
# connected through a Sparkfun Qwiic PiHat (https://www.sparkfun.com/products/14459) |
This file contains 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, gc, os | |
import board | |
import feathers3 | |
import wifi | |
import socketpool | |
try: | |
from secrets import secrets | |
except ImportError: | |
print("WiFi secrets are kept in secrets.py, please add them there!") |