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
// using the Adafruit Feather M0 ATWINC1500 board | |
#if !defined(ARDUINO_SAMD_MKR1000) && defined(ARDUINO_ARCH_SAMD) | |
#define FEATHER_ATWINC1500 | |
#include <SPI.h> | |
#include <WiFi101.h> | |
WiFiSSLClient *http_client = new WiFiSSLClient; | |
#endif // ATWINC1500 |
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
// Adafruit IO Publish Example | |
// | |
// Adafruit invests time and resources providing this open source code. | |
// Please support Adafruit and open source hardware by purchasing | |
// products from Adafruit! | |
// | |
// Written by Todd Treece for Adafruit Industries | |
// Copyright (c) 2016 Adafruit Industries | |
// Licensed under the MIT license. | |
// |
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 IO_SERVER "io.adafruit.com" | |
#define IO_SERVERPORT 1883 // use 8883 for SSL | |
#define IO_USERNAME "$$$" | |
#define IO_KEY "$$$" | |
#define WIFI_SSID "$$$" | |
#define WIFI_PASS "$$$" | |
// indicator | |
#define PIN 15 |
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
// Adafruit IO Digital Input Example | |
// Tutorial Link: https://learn.adafruit.com/adafruit-io-basics-digital-input | |
// | |
// Adafruit invests time and resources providing this open source code. | |
// Please support Adafruit and open source hardware by purchasing | |
// products from Adafruit! | |
// | |
// Written by Todd Treece for Adafruit Industries | |
// Copyright (c) 2016 Adafruit Industries | |
// Licensed under the MIT license. |
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
// Adafruit IO Group Publish Test | |
// | |
// Adafruit invests time and resources providing this open source code. | |
// Please support Adafruit and open source hardware by purchasing | |
// products from Adafruit! | |
// | |
// Written by Todd Treece for Adafruit Industries | |
// Copyright (c) 2016 Adafruit Industries | |
// Licensed under the MIT license. | |
// |
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
#!/usr/bin/env bash | |
echo -e "\e[93m" | |
echo " _ _ __ __ "; | |
echo " ___ ___ __| | ___ __ _ _ __ __| | ___ ___ / _|/ _| ___ ___ "; | |
echo " / __/ _ \ / _\` |/ _ \_____ / _\` | '_ \ / _\` |_____ / __/ _ \| |_| |_ / _ \/ _ \\"; | |
echo " | (_| (_) | (_| | __/_____| (_| | | | | (_| |_____| (_| (_) | _| _| __/ __/"; | |
echo " \___\___/ \__,_|\___| \__,_|_| |_|\__,_| \___\___/|_| |_| \___|\___|"; | |
echo " "; | |
echo -e "\e[94m" |
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
# CircuitPlaygroundExpress Light Synth | |
# | |
# reads a potentiometer from A7, changes NeoPixels | |
# and audio tone | |
# | |
# slide switch turns off sound, button a changes sample | |
from analogio import AnalogIn | |
import board | |
import neopixel |
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
-- conway's game of life | |
-- by adam b | |
world = {} | |
pw = "a" | |
nw = "b" | |
function _init() | |
for y = 1,128 do |
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
/*************************************************** | |
Adafruit MQTT Library Ethernet Example | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! | |
Written by Alec Moore | |
Derived from the code written by Limor Fried/Ladyada for Adafruit Industries. | |
MIT license, all text above must be included in any redistribution |
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
# for Sonic Pi - http://sonic-pi.net/ | |
live_loop :flibble do | |
set :n, rrand_i(1, 9) | |
sample :tabla_na, rate: 0.9 / (get[:n] / 2.0), amp: 1.0 / get[:n] | |
sleep 1.0 / get[:n] | |
end | |
live_loop :bass do | |
use_synth :growl |