Skip to content

Instantly share code, notes, and snippets.

glyons

View GitHub Profile
View Digispark and Slider pot - Simple Example Keyboard Value Send
#include "DigiKeyboard.h"
int led =1 ;
int sensorValue = 0;
int previousvalue=0;
void setup() {
// Just a example
}
void loop() {
View Digispark and Slider pot - Simple Example Flashing LED controlled by the slider
int led =1 ;
int sensorValue = 5;
int status = false;
void setup() {
digitalWrite(led, true);
pinMode(led, OUTPUT);
}
void loop() {
View Creating Electron App with Angular Functionality
Install Nodes.Js
https://nodejs.org/en/download/
Next do Angular Tutorial
https://angular.io/tutorial
From the command Line
=======================
npm install -g electron // Globally
View Darkroom Timer - LED Matrix
// Display
#include <Adafruit_GFX.h> // Needs a little change in original Adafruit library (See README.txt file)
#include <SPI.h> // For SPI comm (needed for not getting compile error)
#include <Wire.h> // For I2C comm, but needed for not getting compile error
// LED Matrix
#include <Max72xxPanel.h>
// Add Encoder Support
View Audio Source Switch - OLED and Rotary Dial
// Display
#include <ESP_SSD1306.h> // Modification of Adafruit_SSD1306 for ESP8266 compatibility
#include <Adafruit_GFX.h> // Needs a little change in original Adafruit library (See README.txt file)
#include <SPI.h> // For SPI comm (needed for not getting compile error)
#include <Wire.h> // For I2C comm, but needed for not getting compile error
// Add Encoder Support
#include <Encoder.h>
View Darkroom Timer OLED
// Display
#include <ESP_SSD1306.h> // Modification of Adafruit_SSD1306 for ESP8266 compatibility
#include <Adafruit_GFX.h> // Needs a little change in original Adafruit library (See README.txt file)
#include <SPI.h> // For SPI comm (needed for not getting compile error)
#include <Wire.h> // For I2C comm, but needed for not getting compile error
// Add Encoder Support
#include <Encoder.h>
@glyons
glyons / digitsparkdelayled
Created Feb 1, 2019
Digispark 1 second delay button with on board LED
View digitsparkdelayled
int led =1 ; // Ues on board LED
int button=2; // Button to 5V Rail and 10k register on P2 to GND
int status = false;
void setup() {
digitalWrite(led, LOW);
pinMode(led, OUTPUT);
digitalWrite(button,LOW);
pinMode(button,INPUT);
View ePaper 1.54" with YouTube Stats and Temperature Sensor
// mapping suggestion from Waveshare SPI e-Paper to Wemos D1 mini
// BUSY -> D2, RST -> D4, DC -> D3, CS -> D8, CLK -> D5, DIN -> D7, GND -> GND, 3.3V -> 3.3V
#include <GxEPD.h>
// select the display class to use, only one
#include <GxGDEW0154Z04/GxGDEW0154Z04.cpp> // 1.54" b/w/r 200x200
#include GxEPD_BitmapExamples
// FreeFonts from Adafruit_GFX
View Kubenetes and Azure notes
Microsft Training - Developing Applications with Containers
============================================================
aka.ms/wscontainers
docker run
Get an Image
===================
from Dockerhub
@glyons
glyons / css
Created Aug 19, 2018
Hamilton Theme - Add Widget Support (Add to the top of each PHP file)
View css
<!-- Need to add CSS styling -->
You can’t perform that action at this time.