This file contains 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
/* | |
Playing around for midi_touch_v2. part 1 (redo 20) | |
* AS1107 on SPI0 connected to 8x8 matrix | |
* Rotary Encoder on ; | |
- PD0 | |
- PD1 (both sides of the rotary) | |
- PD2 to one of the switch pins | |
- rest of the rotary pins to ground |
This file contains 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
// attempt at PS2 implementation | |
// code stolen from http://hippy.blogs.exetel.com.au/index.php?/archives/24-MA2onPC,-a-Trackball-and-a-Stellaris-Launchpad.html | |
#define CHECK_BIT(var,pos) ((var) & (1<<(pos))) | |
#define PS2_clockpin PE_2 | |
#define PS2_datapin PE_3 | |
// possible signal states | |
enum |
This file contains 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 PS2_clockpin PE_2 | |
#define PS2_datapin PE_3 | |
byte read_CLOCK() { | |
return digitalRead(PS2_clockpin); | |
} | |
byte read_DATA() { | |
return digitalRead(PS2_datapin); | |
} |
This file contains 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
volatile int state = HIGH; | |
volatile int flag = HIGH; | |
volatile int Aold = 0; | |
volatile int Anew = 0; | |
volatile int Bold = 0; | |
volatile int Bnew = 0; | |
static boolean rotating=false; // debounce management |
This file contains 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
#!/bin/bash | |
while true; do | |
OMGMAXYO=128 | |
L32=$[ 1 + $[ RANDOM % $OMGMAXYO ]] | |
L33=$[ 1 + $[ RANDOM % $OMGMAXYO ]] | |
L34=$[ 1 + $[ RANDOM % $OMGMAXYO ]] | |
L35=$[ 1 + $[ RANDOM % $OMGMAXYO ]] |
This file contains 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
#!/bin/sh | |
# 2014-07-06 | |
# | |
# This is the procedure to get oclvanitygen running with AMD Raedon 7xxx | |
# on a fresh install of Ubuntu 64-bit. (tested with Ubuntu 12.04 and 14.04) | |
# install tools, dependencies and driver | |
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) restricted" |
This file contains 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
// bitcointicker v0.04 | |
// buZz / NURDspace | |
// libraries used; | |
// | |
// * https://github.com/squix78/esp8266-oled-ssd1306 | |
// * https://github.com/tzapu/WiFiManager | |
#include <ESP8266WiFi.h> | |
#include <DNSServer.h> |
This file contains 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
import urllib | |
import random | |
import gzip | |
import time | |
import os | |
import re | |
user_agents = [ | |
'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11', | |
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)', |
This file contains 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
# version | |
# Cleanflight/SPRACINGF3EVO 1.13.0 Jun 6 2016 / 00:03:29 (a77bc76) | |
# dump master | |
# mixer | |
mixer QUADX | |
mmix reset | |
smix reset | |
OlderNewer