Skip to content

Instantly share code, notes, and snippets.

View TAUTIC's full-sized avatar

Jayson Tautic TAUTIC

View GitHub Profile
@TAUTIC
TAUTIC / keybase.md
Created August 26, 2019 03:17
keybase.md

Keybase proof

I hereby claim:

  • I am tautic on github.
  • I am tautic (https://keybase.io/tautic) on keybase.
  • I have a public key ASBwieMOlbjWXl4bmj3VHHIwweXE9NIAkQweUnJ8GCQb8Ao

To claim this, I am signing this object:

@TAUTIC
TAUTIC / TLC59282_Demo.ino
Created November 9, 2012 21:35
TLC59282 Demo
/* TLC59282 Demo - See it in action here: http://youtu.be/REM6bI637JQ?hd=1
Copyright (c) 2012 Jayson Tautic - TAUTIC ELECTRONICS LLC
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
@TAUTIC
TAUTIC / MAX31855Example.ino
Created November 8, 2012 16:53
MAX31855 Example
const int CH1 = 5; // Channel 1 CS
const int mDataPin = 6; // SO
const int mClockPin = 7; // SCK
void setup() {
Serial.begin(9600);
pinMode(CH1, OUTPUT); //CS is an Output
pinMode(mDataPin, INPUT); //SO is an Input
pinMode(mClockPin, OUTPUT); //SCK is an Output
digitalWrite(CH1, 1);
@TAUTIC
TAUTIC / AS3935_LC.spin
Created October 28, 2012 18:27
AS3935 Demo for the Parallax Propeller
' AS3935 Lightning Detector -- lostcauz 10/17/2012
' Thanks Jayson Tautic [www.tautic.com] for the tuning code and creating this awesome board!
' Propeller pins 1..5 == CS - IRQ - SCLK - MISO - MOSI || (connect SI to GND)
' write - 00 pull CS low, write, pull CS high
' read - 01 register_addr(6 bits) register_data(8 bits)
' read - (CS high,low,high ends read)
' on_events, AS3935 pulls IRQ high and displays the interrupt in the REG0x03[3:0]
@TAUTIC
TAUTIC / main.c
Created September 6, 2012 19:56
PIC16F1503 Demo
#include <stdio.h>
#include <stdlib.h>
#include <xc.h>
#ifndef _XTAL_FREQ
#define _XTAL_FREQ 16000000
#endif
#pragma config WDTE=OFF, MCLRE=ON, CP=OFF, FOSC=INTOSC
@TAUTIC
TAUTIC / main.c
Created June 11, 2012 15:43
PIC18F14K50 Blink example - Compatible with MPLAB X
//Be sure to include a linker file for the PIC18F14K50, I use the rm18f14k50.lkr file in the USB - Mouse demo firmware folder available in the Microchip Application Library download. (see http://www.microchip.com/mal)
#include <p18f14k50.h>
#include <delays.h>
//Bootloader support code start
extern void _startup (void); // See c018i.c in your C18 compiler dir
#pragma code REMAPPED_RESET_VECTOR = 0x1000
void _reset (void)
{
_asm goto _startup _endasm
}
@TAUTIC
TAUTIC / TAUTIC Accelerometer break out demo code.
Created October 25, 2011 02:45 — forked from Addidis/TAUTIC Accelerometer break out demo code.
Sample code for the MMA7660FCR1 Accelerometer Breakout Board
// MMA7660FC Basic demo by Addidis
// Released under the Creative Commons Attribution-ShareAlike License (3.0)
// http://creativecommons.org/licenses/by-sa/3.0/us/
// 10/24/11
// HW : Tautic accelerometer board +4.7k pull ups on sda scl , uno32, led +330 resistor
// SCL -->A5
// SDA -->A4
// INT -->D7
// gnd -->gnd
// vdd -->3.3v NOTE 3.3v!
@TAUTIC
TAUTIC / LED_Matrix_Test.pde
Created October 5, 2011 14:52
LED Matrix Test
const int lastFrame = 4; //Number of frames in the animation sequence
const boolean image[4][8][20] =
{
{
{1,1,0,0,1,1,0,0,1,1,1,1,0,0,0,1,1,1,1,1},
{1,1,0,0,1,1,0,0,1,1,1,0,0,0,0,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1},
{1,1,1,1,0,0,1,1,1,1,0,0,0,1,1,1,0,1,1,0},
{1,0,1,1,1,1,1,1,0,1,0,0,0,0,1,1,1,1,1,1},
{1,0,0,1,1,1,1,0,0,1,1,0,0,0,0,1,1,1,1,1},
@TAUTIC
TAUTIC / MMA7660FCR1_Example.pde
Created August 15, 2011 12:40
MMA7660FCR1 Example Code - For ChipKit UNO32
#include <Wire.h>
void setup()
{
Serial.begin(38400); // start serial for output
Wire.begin();
}
void loop()
{
@TAUTIC
TAUTIC / MAX31855x2.pde
Created July 27, 2011 14:52
Test code for running 2 MAX31855 Breakout Boards on a ChipKIT UNO32
const int CH1 = 4; // Channel 1 CS
const int CH2 = 5; // Channel 2 CS
const int mDataPin = 6; // SO
const int mClockPin = 7; // SCK
void setup() {
Serial.begin(9600);
pinMode(CH1, OUTPUT); //CS is an Output
pinMode(CH2, OUTPUT); //CS is an Output
pinMode(mDataPin, INPUT); //SO is an Input