You can get really good official docs here now https://github.com/adafruit/circuitpython/tree/main/ports/espressif
Below are the old notes (19 Oct 2020)
Open FileMerge from command line | |
opendiff | |
If the command-line doesn't work, and you have no /Developer directory anymore, you probably need to: | |
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer |
# Download the file manually from here https://launchpad.net/gcc-arm-embedded | |
# Note: `curl` command doesn't work | |
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2" | |
# double click it to unzip it | |
# Make a place to install it to | |
mkdir /usr/local/gcc_arm | |
# Move the unzipped stuff there. |
/* | |
Funky Clouds Compendium (alpha version) | |
by Stefan Petrick | |
An ever growing list of examples, tools and toys | |
for creating one- and twodimensional LED effects. | |
Dedicated to the users of the FastLED v2.1 library | |
by Daniel Garcia and Mark Kriegsmann. |
/* | |
Copyright 2016 DSP Synthesizers Sweden. | |
Author: Jan Ostman | |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
See the GNU General Public License for more details. | |
*/ | |
#include "wiring.h" | |
#include "LPC8xx.h" |
NNNNNNNN NNNNNNNN OOOOOOOOO PPPPPPPPPPPPPPPPP EEEEEEEEEEEEEEEEEEEEEE | |
N:::::::N N::::::N OO:::::::::OO P::::::::::::::::P E::::::::::::::::::::E | |
N::::::::N N::::::N OO:::::::::::::OO P::::::PPPPPP:::::P E::::::::::::::::::::E | |
N:::::::::N N::::::NO:::::::OOO:::::::OPP:::::P P:::::PEE::::::EEEEEEEEE::::E | |
N::::::::::N N::::::NO::::::O O::::::O P::::P P:::::P E:::::E EEEEEE | |
N:::::::::::N N::::::NO:::::O O:::::O P::::P P:::::P E:::::E | |
N:::::::N::::N N::::::NO:::::O O:::::O P::::PPPPPP:::::P E::::::EEEEEEEEEE | |
N::::::N N::::N N::::::NO:::::O O:::::O P:::::::::::::PP E:::::::::::::::E |
You can get really good official docs here now https://github.com/adafruit/circuitpython/tree/main/ports/espressif
Below are the old notes (19 Oct 2020)
const path = require('path'); | |
const { execSync } = require('child_process'); | |
const fs = require('fs'); | |
const yaml = require('js-yaml'); | |
const { appBuilderPath } = require('app-builder-bin'); | |
const currentWorkingDirectory = process.cwd(); | |
const packageInfo = require(path.join(currentWorkingDirectory, 'package.json')); | |
const APP_NAME = packageInfo.build.productName; | |
const APP_VERSION = process.argv[2] ? process.argv[2] : packageInfo.version; |
// modeled after https://github.com/todbot/qtpy-tricks#fire-simulation-on-external-neopixel-strip | |
// must use latest FastLED checkout from https://github.com/FastLED/FastLED | |
// as FastLED 3.3.3 doesn't have QT Py support | |
#include "FastLED.h" | |
#define LED_PIN 0 | |
#define NUM_LEDS 8 | |
CRGB leds[NUM_LEDS]; | |
void setup() { |
# | |
# wifi-preferred-network.py -- Given a list of preferred networks, | |
# connect to the one with the strongest signal | |
# for CircuitPython ESP32S2 Metro / MagTag | |
# 2020 @todbot / todbot.com/blog | |
import time | |
import wifi | |
from secrets import secrets |