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
#include <IRremote.h> | |
int RECV_PIN = 11; | |
IRrecv irrecv(RECV_PIN); | |
decode_results results; | |
void setup() | |
{ |
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
#!/usr/bin/env python2 | |
""" | |
OpenCV example. Show webcam image and detect face. | |
""" | |
import cv2 | |
TRAINSET = "/usr/share/OpenCV/lbpcascades/lbpcascade_frontalface.xml" | |
DOWNSCALE = 4 |
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
void ADS7843_Calibrate(void) | |
{ | |
static Coordinate *Pos; | |
uint16_t MatriceA[3][3] = {{1,1,1},{1,1,1},{1,1,1}}; // MatriceA for values of ADC ADS7843 | |
uint8_t i,j; // Inserts itself into a matrix | |
uint32_t detA; // determinant matriceA | |
int32_t transA[3][3]; // transpose matriceA | |
float invA[3][3]; // Invert MatriceA | |
float pom; // to save 1/detA |
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
/* | |
* Program that takes commands via Async Serial, which could be useful for debugging. | |
* LEDs are green when transmitting data, and red when receiving data. | |
* | |
* G2553 Pinout: | |
* 1.0 - red status led | |
* 1.1 - uart input | |
* 1.2 - uart output | |
* 1.6 - green status led | |
* |
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
https://www.evernote.com/shard/s247//sh/d4b767ad-9459-4493-b9e7-67e42a50acee/42a821d110aa5fa3decdc86528bfb07b |
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
////////////////////////////////////////////// | |
// CAT AND MOUSE GAME | |
// Author: Mike Parks | |
// | |
////////////////////////////////////////////// | |
// INCLUDE LIBRARIES | |
#include <Esplora.h> | |
// DECLARE GLOBAL VARIABLES |
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
#include "lm4f120h5qr.h" | |
#include "inc/hw_memmap.h" | |
#include "inc/hw_types.h" | |
#include "driverlib/i2c.h" | |
#include "driverlib/debug.h" | |
#include "driverlib/gpio.h" | |
#include "driverlib/pin_map.h" | |
#include "I2C_Stellaris_API.h" | |
#include "utils/uartstdio.h" |
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
/* | |
* srf02.c | |
* | |
* Created on: 26 Jan 2013 | |
* Author: David | |
*/ | |
//includes | |
#include "lm4f120h5qr.h" | |
#include "inc/hw_memmap.h" |
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
/* | |
* cmps03.c | |
* | |
* Created on: 26 Jan 2013 | |
* Author: David | |
*/ | |
// driver for cmps03 electronic compass | |
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: Control a WTV020-SD-16P module to play voices from an Arduino board. | |
Created by Diego J. Arevalo, August 6th, 2012. | |
Released into the public domain. | |
*/ | |
#include <Wtv020sd16p.h> | |
int resetPin = 2; // The pin number of the reset pin. | |
int clockPin = 3; // The pin number of the clock pin. |
OlderNewer