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 PIL import Image | |
| from random import randint | |
| import random | |
| import os | |
| def full_random_image(): | |
| image_name = random.choice(os.listdir("images")) | |
| asset_image = Image.open("images/"+image_name) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #NRF24L01 CircuitPython Badge Test | |
| import board | |
| import neopixel | |
| import time | |
| import struct | |
| from adafruit_pybadger import pybadger | |
| from digitalio import DigitalInOut | |
| from circuitpython_nrf24l01.rf24 import RF24 | |
| # set this to 0 or 1 for the two badges |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #define MAX_V 1023 | |
| #define STEP_V 38 | |
| int voltage = 0; | |
| void setup() { | |
| pinMode(0, OUTPUT); //P0 | |
| pinMode(1, OUTPUT); //P1 |
OlderNewer