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:
I hereby claim:
To claim this, I am signing this object:
/* 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 |
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); |
' 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] |
#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 |
//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 | |
} |
// 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! |
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}, |
#include <Wire.h> | |
void setup() | |
{ | |
Serial.begin(38400); // start serial for output | |
Wire.begin(); | |
} | |
void loop() | |
{ |
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 |