Skip to content

Instantly share code, notes, and snippets.

Aditya Tannu AdySan

Block or report user

Report or block AdySan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AdySan / smallcam.user.js
Created Aug 1, 2016 — forked from jrr/smallcam.user.js
Nest Cam Enhancements
View smallcam.user.js
// ==UserScript==
// @name Nest Cam Smallerizer
// @namespace
// @version 0.2
// @description make camera more usable in small windows
// @author jrr
// @match*
// @match*
// @grant none
// ==/UserScript==
AdySan / FiberOpticLamp.ino
Created Jan 14, 2016
Philips Hue Clone using ESP8266
View FiberOpticLamp.ino
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN D8
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800);
AdySan / Digispark_NeoPixel_NightLight.ino
Last active Feb 1, 2016
A simple 6 NeoPixel nightlight using a digispark and IKEA SOLVINDEN
View Digispark_NeoPixel_NightLight.ino
#include <Adafruit_NeoPixel.h>
//#ifdef __AVR__
#include <avr/power.h>
#define PIN 1
Adafruit_NeoPixel strip = Adafruit_NeoPixel(9, PIN, NEO_GRB + NEO_KHZ800);
unsigned long long previousMillis = 0;
AdySan / ESP_Plasma.ino
Last active Jul 19, 2018
ESP8266/Arduino Plasma effect demo using esp8266-oled-ssd1306 library.
View ESP_Plasma.ino
#include <Wire.h>
#include "SSD1306.h"
#define SET_BIT_HIGH(__mem, __x, __y) \
__mem[x + (y >> 3)*128] |= _BV( y - ((y >> 3) << 3) )
static const uint8_t sinustable[ 0x100 ] = {
0x80, 0x7d, 0x7a, 0x77, 0x74, 0x70, 0x6d, 0x6a,
0x67, 0x64, 0x61, 0x5e, 0x5b, 0x58, 0x55, 0x52,
0x4f, 0x4d, 0x4a, 0x47, 0x44, 0x41, 0x3f, 0x3c,
AdySan / HueLight.ino
Created Dec 22, 2015
Philips Hue clone using ESP8266 and NeoPixels along with HAP-NodeJS
View HueLight.ino
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN D4
Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800);
AdySan / HALP.lua
Created Sep 6, 2015
Recover NodeMCU when ini.lua is pointing to a buggy script
View HALP.lua"init.lua","w")
file.writeline([[print("Hello, do this at the beginning.")]])
AdySan / Digispark_Neopixel.ino
Last active Nov 2, 2019
Drive an WS2812b (NeoPixel) LED strip with a Digispark (ATTiny85)
View Digispark_Neopixel.ino
#include <Adafruit_NeoPixel.h>
#define PIN 1
#define STRIPSIZE 80 // Limited by max 256 bytes ram. At 3 bytes/LED you get max ~85 pixels
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
AdySan /
Created Aug 13, 2015
Fix Arduino 1.6.5 to work with Digispark
chmod +x /Users/maurizio_bollini/Library/Arduino15/packages/digistump/tools/micronucleus/2.0a4/launcher
chmod +x /Users/maurizio_bollini/Library/Arduino15/packages/digistump/tools/micronucleus/2.0a4/micronucleus
You can’t perform that action at this time.