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
/* | |
Adapted from example file at https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino | |
by Evandro Copercini - Apache 2.0 License. | |
*/ | |
#include <WiFiClientSecure.h> | |
#include <ArduinoJson.h> | |
#include <ESP32Servo.h> | |
Servo myservo; // create servo object to control a servo |
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 board | |
import digitalio | |
import adafruit_character_lcd.character_lcd as characterlcd | |
import time | |
lcd_rs = digitalio.DigitalInOut(board.D21) | |
lcd_en = digitalio.DigitalInOut(board.D19) | |
lcd_d7 = digitalio.DigitalInOut(board.D14) | |
lcd_d6 = digitalio.DigitalInOut(board.D15) | |
lcd_d5 = digitalio.DigitalInOut(board.D16) |
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 board | |
import digitalio | |
import adafruit_character_lcd.character_lcd as characterlcd | |
import time | |
lcd_rs = digitalio.DigitalInOut(board.D21) | |
lcd_en = digitalio.DigitalInOut(board.D19) | |
lcd_d7 = digitalio.DigitalInOut(board.D14) | |
lcd_d6 = digitalio.DigitalInOut(board.D15) | |
lcd_d5 = digitalio.DigitalInOut(board.D16) |
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"); | |
} |
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 <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
"""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
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
"""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 |