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 / 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.
@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");
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 / 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.
#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 / 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
@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 / 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 / Battery Empty Icon
Created May 3, 2013 22:28
Arduino GLCD library bitmap
/* battery empty bitmap file for GLCD library */
/* Bitmap created by RoboTonics */
/* Date:1st May 2013 */
/* Image Pixels = */
/* Image Bytes = */
#include <inttypes.h>
#include <avr/pgmspace.h>
#ifndef battery0_H
@Robotonics
Robotonics / menu_bg.xml
Created May 18, 2013 23:20
Background for menu button
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" shape="rectangle">
<gradient android:angle="270"
android:startColor="#e7ff47"
android:endColor="#90a501" />
<corners android:topLeftRadius="5dip"
android:bottomRightRadius="5dip"