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 / 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"
@Robotonics
Robotonics / menu_selector.xml
Created May 18, 2013 23:22
Background selector for menu button
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:state_pressed="false"
android:drawable="@drawable/menu_hover"
/>
@Robotonics
Robotonics / menu_hover.xml
Created May 18, 2013 23:23
Hover 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="#6b6b6b"
android:endColor="#0e0e0e"
/>
<Button
android:id="@+id/Pause"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="100dp"
android:background="@drawable/menu_selector"
android:text="@string/Pause"/>