View adafruit_st25dv16.py
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: Copyright (c) 2021 Tim Cocks for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
""" | |
`adafruit_st25dv16` | |
================================================================================ | |
CircuitPython driver for the I2C EEPROM of the Adafruit ST25DV16 Breakout |
View code.py
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
from adafruit_magtag.magtag import MagTag | |
from adafruit_progressbar.progressbar import ProgressBar | |
# BELGIUM | |
POPULATION = 11589616 | |
DATA_SOURCE = "https://raw.githubusercontent.com/owid/covid-19-data/master/public/data/vaccinations/country_data/Belgium.csv" | |
magtag = MagTag(url=DATA_SOURCE) | |
magtag.network.connect() |
View super_multi.py
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
""" | |
Turn on all the LEDs from each Buzz! controler one after the other. | |
Work with both kind of wired Buzz! controler. | |
Require to install hid library, not an easy task. | |
""" | |
import hid | |
import time |
View simple_test.py
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
from keypad import Keys | |
import board | |
import time | |
pins = [board.BUTTON_A, board.BUTTON_B] | |
keys = Keys(pins, value_when_pressed=False, pull=True) | |
while True: | |
if keys.events.overflowed: | |
keys.events.clear() |
View emojiclock
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
# CircuitPython Discord rotating clock emoji (spam). | |
# Type an emoji in Discord... do nothing else, with your ItsiBitsy nrF. | |
# Press the button to replace that emoji by another one every second. | |
import time | |
import board | |
import usb_hid | |
from digitalio import DigitalInOut, Direction | |
from adafruit_hid.keyboard import Keyboard |
View Dual_mouse_bug.py
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
### | |
# Dual BLE mouse jiggling: | |
# Advertise a first mouse as "CircuitPython HID1" | |
# Once we have a first connection | |
# Advertise a second mouse as "CircuitPython HID2" | |
# | |
# Once the first mouse is connected the jiggling start. | |
# Mouse1 should do Left-Right movement | |
# Mouse2 (once connected) should do Up-Down movement | |
# |
View code.py
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 | |
import board | |
import digitalio | |
import storage | |
import usb_hid | |
from adafruit_hid.mouse import Mouse | |
import usb_cdc | |
#usb_hid.enable(devices=(usb_hid.MOUSE,)) ###AttributeError: 'module' object has no attribute 'MOUSE' |
View code.py
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
### Thermal camera mono-source multiple platform: | |
### | |
### On a FeatherWing Keyboard: | |
### 'FeatherS2 with ESP32S2' | |
### 'Adafruit Feather RP2040 with rp2040' | |
### | |
### With build in screen: | |
### 'Adafruit CLUE nRF52840 Express with nRF52840' | |
### 'Adafruit Matrix Portal M4 with samd51j19' + 32x64 Matrix | |
### If a 64x64 matrix (or two time 32x64) then the following |
View code.py
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
### MLX90640 + FeatherWing Keyboard bilinear upscalling and displayio pixel stretching | |
### Feather RP2040: Reach 4x bilinear x2 pixel doubling | |
### Feather S2: Reach x5 bilinear x2 pixel doubling | |
### Detect what Feather is in use and adapt | |
# Input is 32x24 | |
# Make use of ulab for fast math operation on matrix | |
# Split ulab operations to minimise memory consumption by temporary variable | |
#from bbq10keyboard import BBQ10Keyboard, STATE_PRESS, STATE_RELEASE, STATE_LONG_PRESS |
View scale_x5_x2.py
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
from bbq10keyboard import BBQ10Keyboard, STATE_PRESS, STATE_RELEASE, STATE_LONG_PRESS | |
from adafruit_stmpe610 import Adafruit_STMPE610_SPI | |
import adafruit_ili9341 | |
import adafruit_sdcard | |
import digitalio | |
import displayio | |
import neopixel | |
import storage | |
import board | |
import time |
NewerOlder