Skip to content

Instantly share code, notes, and snippets.

@dwaq
dwaq / blink-ATtiny13a.c
Created March 7, 2014 14:09
Blink LED on ATtiny13A when switch is pressed. tinkeringetc.blogspot.com
//*************************************************************************************************
// Adjustable RGB LED Color Cube
//
// By: Dillon Nichols
// http://tinkeringetc.blogspot.com/2013/07/adjustable-rgb-led-color-cube.html
//
// Created in Arduino 1.0.5
//
// Description:
// Drives four strips of RGB LEDs inside a cube structure by the use of a controller that
@dwaq
dwaq / main.c
Last active December 19, 2015 19:48
MSP430 flip clock project located at http://tinkeringetc.blogspot.com/
//*************************************************************************************************
// MSP430 Flip Clock
//
// By: Dillon Nichols
// http://tinkeringetc.blogspot.com/
//
// Created in Code Composer Studio 5.4.0
//
// Description:
// A frequency is created by the external 32768Hz crystal which causes an interrupt every minute.
@dwaq
dwaq / SA56004ED_temp.ino
Created December 19, 2013 02:17
reading temperature from SA56004ED temperature sensor http://tinkeringetc.blogspot.com/
// reading temperature from SA56004ED temperature sensor
// http://tinkeringetc.blogspot.com/
#include <Wire.h>
#define SA56004ED 0x4C // SA56004ED temperature sensor device address
#define LTHB 0x00 // local temperature high byte register address
#define LTLB 0x22 // local temperature high byte register address
float lthb, ltlb; // local temperature low and high bytes
https://www.youtube.com/watch?v=KguyjVDlH1o
## Master Boot Record
copy image of flash card
move to ubunutu
full disc image so has MBR
MBR tells about partitions, code to boot bootloader (512 bytes)
> xxd file.img | less
> xxd -g1
https://www.youtube.com/watch?v=rA7u0l9QbJg
https://github.com/scanlime/metalkit
list all nested files in directory
$ find . | less
find text in files recursively
$ grep -t text2find .
function menu(e) {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Macros')
.addItem('Parse email', 'interest')
.addToUi();
}
function interest() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var s = ss.getActiveSheet();
@dwaq
dwaq / clapper.ino
Created August 7, 2019 22:58
Arduino code for the Clap-Activated Applause Machine https://hackaday.io/project/166959-clap-activated-applause-machine
//***************************************************************************************
// Clap-Activated Applause Machine
//
// By: Dillon Nichols
// @Dillon1337
// https://hackaday.io/project/166959-clap-activated-applause-machine
//
// This work is licensed under a Creative Commons Attribution 3.0 Unported License.
//***************************************************************************************
@dwaq
dwaq / apio.ini
Created November 26, 2019 17:03
Traffic Light project in Verilog using APIO
[env]
board = TinyFPGA-BX

Installation

In WSL:

Download tensorflow:

git clone --depth 1 https://github.com/tensorflow/tensorflow.git

cd tensorflow