Skip to content

Instantly share code, notes, and snippets.

View witnessmenow's full-sized avatar

Brian Lough witnessmenow

View GitHub Profile
@witnessmenow
witnessmenow / wpa_supplicant.conf
Created June 14, 2018 15:46
Example wpa_supplicant.conf file for headless raspberry pi setup
country=ie
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="ssid"
psk="password"
}
/*********************************************************************
This is an example sketch for our Monochrome Nokia 5110 LCD Displays
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products/338
These displays use SPI to communicate, 4 or 5 pins are required to
interface
Adafruit invests time and resources providing this open source code,
@witnessmenow
witnessmenow / sketch.ino
Created March 17, 2019 12:19
AlarmClock code with EZTime library
#include <ESP8266WiFi.h>
#include <TM1637Display.h>
#include <ezTime.h>
// Both can be installed from library manager
char ssid[] = "SSID"; // your network SSID (name)
char password[] = "password"; // your network password
// Module connection pins (Digital Pins)
@witnessmenow
witnessmenow / the.cpp
Created April 10, 2019 19:52
Wifi 7 Seg library Changes
/***************************************************
This is a library for our I2C LED Backpacks
Designed specifically to work with the Adafruit LED Matrix backpacks
----> http://www.adafruit.com/products/
----> http://www.adafruit.com/products/
These displays use I2C to communicate, 2 pins are required to
interface. There are multiple selectable I2C addresses. For backpacks
with 2 Address Select pins: 0x70, 0x71, 0x72 or 0x73. For backpacks
@witnessmenow
witnessmenow / YT.ino
Created April 10, 2019 19:54
Example of Wifi 7 seg
/*******************************************************************
Read YouTube Channel statistics from the YouTube API
* *
By Brian Lough
https://www.youtube.com/channel/UCezJOfu7OtqGzd5xrP3q6WA
*******************************************************************/
#include <YoutubeApi.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
@witnessmenow
witnessmenow / echoBotNina.ino
Created July 9, 2019 15:11
EchoBot with WiFiNINA
/*
This example creates a client object that connects and transfers
data using always SSL.
It is compatible with the methods normally related to plain
connections, like client.connect(host, port).
Written by Arturo Guadalupi
last revision November 2015
@witnessmenow
witnessmenow / FallingSandRGBMatrix.ino
Created August 12, 2019 23:14
Falling Sand project for RGB matrix with a MPU6050 acceloremeter
// WIP!!!
//--------------------------------------------------------------------------
// Animated 'sand' for Adafruit Feather. Uses the following parts:
// - Feather 32u4 Basic Proto (adafruit.com/product/2771)
// - Charlieplex FeatherWing (adafruit.com/product/2965 - any color!)
// - LIS3DH accelerometer (2809)
// - 350 mAh LiPoly battery (2750)
// - SPDT Slide Switch (805)
//
@witnessmenow
witnessmenow / PixelTimeAnalog.ino
Last active September 25, 2019 19:09
PixelTimeAnalog
#include <PxMatrix.h>
#ifdef ESP32
#define P_LAT 22
#define P_A 19
#define P_B 23
#define P_C 18
#define P_D 5
@witnessmenow
witnessmenow / PatternPlasma.ino
Last active October 19, 2019 21:10
Using I2S
/*
* Portions of this code are adapted from Aurora: https://github.com/pixelmatix/aurora
* Copyright (c) 2014 Jason Coon
*
* Portions of this code are adapted from LedEffects Plasma by Robert Atkins: https://bitbucket.org/ratkins/ledeffects/src/26ed3c51912af6fac5f1304629c7b4ab7ac8ca4b/Plasma.cpp?at=default
* Copyright (c) 2013 Robert Atkins
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
// Create a new google Sheet, go to Tools -> Script Editor
// Info for setting it up on a timer here:
// https://www.quora.com/How-can-I-periodically-run-a-Google-Script-on-a-Spreadsheet
//If you don't want to use Telegram, just comment out line 38
function pullJSON() {
//var ss = SpreadsheetApp.getActiveSpreadsheet();
//var sheets = ss.getSheets();