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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"time" | |
) | |
var x int |
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
/* PyBadge/PyGamer Display Read - see http://www.technoblogy.com/show?332T | |
David Johnson-Davies - www.technoblogy.com - v2 21st April 2020 | |
For Adafruit PyBadge/PyGamer ST7735 TFT displays | |
CC BY 4.0 | |
Licensed under a Creative Commons Attribution 4.0 International license: | |
http://creativecommons.org/licenses/by/4.0/ | |
*/ |
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
/* PyGamer/PyBadge Sprite Routines - see http://www.technoblogy.com/show?33W0 | |
David Johnson-Davies - www.technoblogy.com - 1st May 2020 | |
For Adafruit PyGamer/PyBadge ST7735 TFT displays | |
CC BY 4.0 | |
Licensed under a Creative Commons Attribution 4.0 International license: | |
http://creativecommons.org/licenses/by/4.0/ | |
*/ |
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
#[derive(Debug, Copy, Clone)] | |
pub struct Thing { | |
value: f64, | |
} | |
struct Node { | |
val: Thing, | |
next: Option<Box<Node>>, | |
} |
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
int sensorPin = A2; // select the input pin for the potentiometer | |
const uint8_t D12 = 12; | |
const uint8_t D11 = 11; | |
const uint8_t D10 = 10; | |
const uint8_t D9 = 9; | |
const uint8_t D6 = 6; | |
const uint8_t D5 = 5; | |
const uint8_t D21 = 21; | |
const uint8_t D22 = 22; |
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
/* | |
Sketch for TTGO T-Display: | |
This sketch generates signals on 2 or 3 pins according the memory cycle specs | |
of the FM1808 NVRam chip from RamTron (now "Cypress Semi") | |
Read cycle: |----- 2us ----------| | |
/CE _____/''''''''\____________________/''''''''\________ | |
ADR xxxxxxx0101010101010xxxxxxxxxxxxxxxxxxx | |
/OE ''''''''''''''''''\______________________/''''''''''' |
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
// A simple comparator used for learning simulation workflows | |
// comparator - comparator_tb.v | |
// | |
// Description: | |
// Testbench for comparator module. | |
// | |
`timescale 1ns/10ps | |
module comparator #( |
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
// Rotary Encoder driving a 2 digit 7 Segmented display - top.v | |
// The BCD decoder is Async. | |
// The display is a 2281AS which has 2 digits and 2 decimal points | |
// Pinout: | |
// 9 = digit 1 common cathode | |
// 6 = digit 2 common cathode | |
// 7 = A segment | |
// 8 = B segment | |
// 3 = C segment |
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
// Rotary Encoder test - top.v | |
// | |
// -------------------------------------------------------------------------- | |
// Sync switch debouncer | |
// -------------------------------------------------------------------------- | |
module digital_filter( | |
input clk, | |
input D, | |
output reg Q); |
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
// Rotary Encoder test - top.v | |
// | |
// -------------------------------------------------------------------------- | |
// Sync switch debouncer | |
// -------------------------------------------------------------------------- | |
module digital_filter( | |
input clk, | |
input D, | |
output reg Q); |
NewerOlder