Skip to content

Instantly share code, notes, and snippets.

View e-Gizmo's full-sized avatar
👩‍🏫
Conducting FREE Seminar and Workshop for Educators https://bit.ly/2XAGOvb

e-Gizmo Mechatronix Central e-Gizmo

👩‍🏫
Conducting FREE Seminar and Workshop for Educators https://bit.ly/2XAGOvb
  • e-Gizmo Mechatronix Central
  • 2/F VSC Building, 2313 Corner Castro St. Taft Ave., Malate, 1004 Manila, Philippines
View GitHub Profile
/*
MPL115A1 SPI Digital Barometer Test Code
Created on: September 30, 2010
By: Jeremiah McConnell - miah at miah.com
Portions: Jim Lindblom - jim at sparkfun.com
This is a simple test program for the MPL115A1 Pressure Sensor (SPI version).
Hardware: ATmega168, ATmega328
Powered at 3.3V or 5V, running at 8MHz or 16MHz.
/*
3-Axis GYRO
Sample codes functions
for Gyroscope ITG3205.
Codes by;
e-Gizmo Mechatronix Central
http://www.e-gizmo.com
/*
4 Digit Display v 2.0
This sample program functions
as a 4 digit 7 segment display
counter.
Codes by:
e-Gizmo Mechatronix Central
http://www.e-gizmo.com
/*
ADXL345 Software Interface
by e-Gizmo Mechatronix Central
http://www.e-gizmo.com
This program uses a special software technique
to allow direct and safe interfacing of a 3.3V ADXL345
device (e-Gizmo ADXL345 breakout board) with the
5V logic interface of the gizDuino/Arduino I/O bus
/*
e-Gizmo 16 Channel Servo Driver
Sample codes function for
16 Channel Servo driver.
Codes by:
e-Gizmo Mechatronix Central
http://www.e-gizmo.com
//************************************************************************
//
// LCD_driver.c: Interface for Nokia LCD
//
//************************************************************************
//************************************************************************
//* Edit History
//* <MLS> = Mark Sproul msproul -at- jove.rutgers.edu
//************************************************************************
//* Apr 2, 2010 <MLS> I received my Color LCD Shield sku: LCD-09363 from sparkfun
//************************************************************************
// Nokia Shield
//************************************************************************
//* Edit History
//* <MLS> = Mark Sproul msproul -at- jove.rutgers.edu
//************************************************************************
//* Apr 2, 2010 <MLS> I received my Color LCD Shield sku: LCD-09363 from sparkfun
//* Apr 2, 2010 <MLS> The code was written for WinAVR, I modified it to compile under Arduino
//* Apr 3, 2010 <MLS> Changed LCDSetPixel to make it "RIGHT" side up
//************************************************************************
#define PHILLIPS
//#define EPSON
#ifdef __cplusplus
extern "C" {
#endif
//********************************************************************
//
// General Function Definitions
/*
e-Gizmo Color Sensor
Sample program for Color sensor.
Codes by:
e-Gizmo Mechatronix Central
http://www.e-gizmo.com
*/
/*
4 Direction Sensor
This is a sample program used for four directional sensors.
The directions are interpreted forward, left, right
and backward as the sensor is oriented wherein
R1 is on the upper side of U1, R2 is on the left side of U1,
and R3 is on the right side of U1.
Circuit: