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 time, curses | |
from curses import wrapper | |
from greatfet import GreatFET | |
def main(): | |
gf = GreatFET() | |
columns = [ | |
gf.gpio.get_pin("J1_P3"), |
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
# Example init and basic routines for 0.85" 128x128 pixel LCD | |
# Sold under Wisevision N085-1212TBWIG41-H12 | |
# | |
# Unnecessary init commands have been stripped out versus other | |
# routines I found online | |
def write_cmd(cmd): | |
set_dc_pin_low() | |
spi_transmit(cmd) |
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
`default_nettype none | |
module corescore_haps_dx7_clock_gen | |
(input wire i_clk, | |
output wire o_clk, | |
output reg o_rst); | |
wire clkfb; | |
wire locked; | |
reg locked_r; |
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
/// This is not written to compile. I just copied everything into one file to make viewing easy | |
/// Here is a sample usage (task definitions and implementations omitted) | |
int main() | |
{ | |
TaskScheduler scheduler; | |
MyTaskA taskA; | |
MyTaskB taskB; | |
BOOL running = true |
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
/* | |
FizzBuzz written in x64 Assembly | |
Uses System V ABI (so Mac, Linux, Unix) | |
To Compile: | |
gcc -o fizzbuzz fizzbuzz.s | |
Written by Craig Bishop | |
5/4/2012 | |
*/ |