Skip to content

Instantly share code, notes, and snippets.

View Robotonics's full-sized avatar
🏠
Working from home

David Cotterill-Drew Robotonics

🏠
Working from home
View GitHub Profile
@Robotonics
Robotonics / smiley robot face icon
Created April 30, 2013 23:33
smiley robot face icon bitmap 16x16 for Arduino GLCD library
/* smiley1 bitmap file for GLCD library */
/* Bitmap created by RoboTonics */
/* Date: 30 Apr 2013 */
/* Image Pixels = */
/* Image Bytes = */
#include <inttypes.h>
#include <avr/pgmspace.h>
#ifndef smiley1_H
@Robotonics
Robotonics / speaker_on icon
Created April 30, 2013 23:31
speaker on icon bitmap 16x16 for Arduino GLCD Library
/* speaker on icon bitmap file for GLCD library */
/* Bitmap created by RoboTonics */
/* Date: 30 Apr 2013 */
/* Image Pixels = 256 */
/* Image Bytes = 32 */
#include <inttypes.h>
#include <avr/pgmspace.h>
#ifndef speakeron_H
@Robotonics
Robotonics / Down Arrow
Created April 29, 2013 22:46
Simple down arrow for Arduino GLCD library
/* down arrow bitmap file for GLCD library */
/* Bitmap created by RoboTonics */
/* Date: 29 Apr 2013 */
/* Image Pixels = 72 */
/* Image Bytes = 9 */
#include <inttypes.h>
#include <avr/pgmspace.h>
#ifndef downarrow_H
#include <glcd.h>
#include <glcd_Buildinfo.h>
#include <glcd_Config.h>
#include <fonts/allFonts.h>
#include <Wtv020sd16p.h>
int resetPin=2;
int clockPin = 12;
int dataPin = 13;
int busyPin = 3;
@Robotonics
Robotonics / BTMP04
Last active December 16, 2015 11:59
Extract from main BTMP04 project
#include <glcd.h>
#include <glcd_Buildinfo.h>
#include <glcd_Config.h>
#include <fonts/allFonts.h>
#include <Wtv020sd16p.h>
int resetPin = 2; // The pin number of the reset pin.
int clockPin = 12; // The pin number of the clock pin.
int dataPin = 13; // The pin number of the data pin.
void print_title(void) {
Title.DefineArea(1,0,19,1);
Title.SelectFont(System 5x7);
Title.CursorTo(0,0);
Title.print ("Alison's MP3 player");
return;
}
@Robotonics
Robotonics / GLCD Title text area
Created April 21, 2013 20:57
Extract from function to create and print Title for Bluetooth mp3 player project.
Title.DefineArea(1,0,19,1);
Title.SelectFont(System 5x7);
Title.CursorTo(0,0);
Title.Print("Alison's MP3 Player");
@Robotonics
Robotonics / gist:5420129
Last active December 16, 2015 10:29
Arduino BTMP04
#include <glcd.h>
#include <glcd_Buildinfo.h>
#include <glcd_Config.h>
#include <fonts/allFonts.h>
#include <Wtv020sd16p.h>
int resetPin = 2; // The pin number of the reset pin.
int clockPin = 12; // The pin number of the clock pin.
int dataPin = 13; // The pin number of the data pin.
/*
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.
@Robotonics
Robotonics / srf02.c
Created January 27, 2013 22:58
I2C driver for SRF02
/*
* srf02.c
*
* Created on: 26 Jan 2013
* Author: David
*/
//includes
#include "lm4f120h5qr.h"
#include "inc/hw_memmap.h"