Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
/*! | |
* jQuery Tiny Pub/Sub for jQuery 1.7 - v0.1 - 27/10/2011 | |
* Based on @cowboy Ben Alman's REALLY tiny pub/sub. | |
* 1.7 specific updates by @addyosmani. | |
* Copyright maintained by @cowboy. | |
* Dual licensed under the MIT and GPL licenses. | |
*/ | |
(function($){ |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
/** | |
* A PWM example for the ATmega328P using the 8-Bit Fast PWM mode. | |
*/ | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <stdbool.h> | |
#include <util/delay.h> | |
int main (void) { |
Copyright (c) 2015 Matthias Esterl | |
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 use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
Install Package Control for easy package management.
Ctrl+`
int latch = 7; //signals controller to latch button states | |
int pulse = 5; //toggle to shift out button states | |
int data = 9; //data in line | |
int data_byte; //byte that stores button states | |
int count[] = {0,0,0,0,0,0,0,0}; //each value stores 1 or 0 indicating whether a key is currently pressed | |
char keys[] = {'a','b','s','d','u','j','l','r'}; //keyboard keys to be pressed | |
int tempbit; //iterates over the data_byte to grab each button's state | |
void setup() { | |
pinMode(latch, OUTPUT); |
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
#include <SoftwareSerial.h> | |
#define SSID "enter the SSID" | |
#define PASS "enter the password" | |
#define DST_IP "220.181.111.85" //baidu.com | |
SoftwareSerial dbgSerial(10, 11); // RX, TX | |
void setup() | |
{ | |
//setup RGB LED as indicator instead of softserial | |
pinMode(3, OUTPUT); | |
pinMode(4, OUTPUT); |