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 "config.h" | |
// ToDO | |
// There's a power bug that stops the screen going to sleep if the USB's been unpowered | |
// This also doesn't update the steps if the screen's been off UNLESS there's one more step (interrrupt) | |
// Get weather from wifi IF it's being charged | |
// Make it last a day comfortably of full use | |
// Save steps per day between power downs | |
// upload steps somewhere? Google Sheets? |
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 network | |
import time | |
from umqtt.robust import MQTTClient | |
import os | |
import sys | |
from machine import Pin | |
ADAFRUIT_IO_URL = b'io.adafruit.com' | |
ADAFRUIT_USERNAME = b'<insert username here>' | |
ADAFRUIT_IO_KEY = b'<insert Adafruit IO key here>' |
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 board | |
from pimoroni_envirowing import gas | |
from pimoroni_envirowing import screen | |
from gauge import Gauge | |
import displayio | |
import terminalio | |
import busio |
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
"""CLUE Spirit Level Demo""" | |
import board | |
from adafruit_clue import clue | |
from adafruit_display_shapes.triangle import Triangle | |
import displayio | |
import time | |
import math | |
display = board.DISPLAY |
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 array | |
import board | |
import audiobusio | |
import ulab | |
import ulab.extras | |
import ulab.vector | |
fft_size = 2048 |
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
"""Waterfall FFT demo adapted from | |
https://teaandtechtime.com/fft-circuitpython-library/ | |
to work with ulab on Adafruit CLUE""" | |
import array | |
import board | |
import audiobusio | |
import displayio | |
import ulab |
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
"""Waterfall FFT demo adapted from | |
https://teaandtechtime.com/fft-circuitpython-library/ | |
to work with ulab on Adafruit CLUE""" | |
import array | |
import board | |
import audiobusio | |
import displayio | |
import ulab |
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 <ArduinoJson.h> | |
#include <WiFiClientSecure.h> | |
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE | |
#include "esp_log.h" | |
// WiFi network name and password: | |
const char * networkName = "YOUR NETWORK SSID HERE"; |
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 <LiquidCrystal.h> | |
LiquidCrystal lcd(21, 19, 17, 16, 15, 14); | |
byte star_1[8] = { | |
B00000, | |
B00000, | |
B00000, | |
B00100, | |
B00000, |
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 <LiquidCrystal.h> | |
LiquidCrystal lcd(21, 19, 17, 16, 15, 14); | |
void setup() { | |
lcd.begin(16, 2); | |
lcd.print("hello"); | |
lcd.setCursor(0,1); | |
lcd.print("world"); | |
} |