This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
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
# open csv file and convert to JSON | |
import csv, json | |
with open('led_map_3d.csv', 'r') as f: | |
reader = csv.reader(f) | |
data = list(reader) | |
# remove first row of csv file (header) | |
data = data[1:] | |
output = [] |
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 machine import Pin, I2C | |
import time | |
# Simple "Sensor Watch" SAO example. | |
# You can paste this at the beginning of your main.py, and then run the rest of your loop normally. | |
# For a more advanced example: https://gist.github.com/joeycastillo/a617c949258fae4e5e333eaeb06b102a | |
# right side I2C, replace with i2c0 for left side | |
display_i2c = i2c1 |
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 machine import Pin, I2C | |
import time | |
display_i2c = i2c1 # right side I2C, replace with i2c0 for left side | |
CHARS = ( | |
0b00000000, # [space] | |
0b00000000, # ! | |
0b01001000, # " | |
0b11001100, # # (°) |
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
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.1-0*% | |
%TF.CreationDate,2023-08-03T08:03:27-04:00*% | |
%TF.ProjectId,OSO-SWAT-B1,4f534f2d-5357-4415-942d-42312e6b6963,03*% | |
%TF.SameCoordinates,Original*% | |
%TF.FileFunction,Copper,L2,Bot*% | |
%TF.FilePolarity,Positive*% | |
%FSLAX46Y46*% | |
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* | |
G04 Created by KiCad (PCBNEW 7.0.1-0) date 2023-08-03 08:03:27* | |
%MOMM*% |
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
// Render front side | |
front = true; | |
// Render back side | |
back = true; | |
// level of detail | |
level_of_detail = 60; | |
// The thickness of the PCB as fabricated |
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
secrets = { | |
"ssid" : "YOUR_WIFI_NETWORK", | |
"password" : "YOUR_WIFI_PASSWORD", | |
"aio_username" : "ADAFRUIT_IO_USERNAME", | |
"aio_key" : "ADAFRUIT_IO_KEY", | |
"timezone" : "America/Chicago", # http://worldtimeapi.org/timezones | |
} |
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 board | |
import digitalio | |
import rtc | |
import time | |
import alarm | |
import ssl | |
import wifi | |
import socketpool | |
import adafruit_requests |
- Create a new user Page.
- Create a new code block and paste the contents of
step1.py
into it. - Repeat for files
step2.py
throughstep5.py
.
In three tests, twice I got the error trying to input step3.py
, and once I got through step3 but started to get the error on step4.py
.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder