Permalink
Browse files

Import of the cleaned-up and slimmed-down PCD8544 port of the Arduino…

… GLCD library.
  • Loading branch information...
0 parents commit 7d37a4c57c7890a6466a7418679c5f40aa361ce2 Mike Smith committed Jul 10, 2011
Showing with 9,895 additions and 0 deletions.
  1. +29 −0 License.txt
  2. BIN bitmaps/ArduinoIcon32.bmp
  3. +34 −0 bitmaps/ArduinoIcon32.h
  4. BIN bitmaps/ArduinoIcon32x32.bmp
  5. +32 −0 bitmaps/ArduinoIcon32x32.h
  6. BIN bitmaps/ArduinoIcon64x32.bmp
  7. +49 −0 bitmaps/ArduinoIcon64x32.h
  8. +7 −0 bitmaps/allBitmaps.h
  9. +14 −0 config/pcd8544_OverLoad.h
  10. +10 −0 debug/bap/bmp2glcd/EasyBMP/BSD_(revised)_license.txt
  11. +1,905 −0 debug/bap/bmp2glcd/EasyBMP/EasyBMP.cpp
  12. +86 −0 debug/bap/bmp2glcd/EasyBMP/EasyBMP.h
  13. +86 −0 debug/bap/bmp2glcd/EasyBMP/EasyBMP_BMP.h
  14. +104 −0 debug/bap/bmp2glcd/EasyBMP/EasyBMP_DataStructures.h
  15. +43 −0 debug/bap/bmp2glcd/EasyBMP/EasyBMP_VariousBMPutilities.h
  16. +342 −0 debug/bap/bmp2glcd/bmp2glcd.cpp
  17. +32 −0 debug/bap/bmp2glcd/makefile
  18. +17 −0 debug/bap/bmp2glcd/readme
  19. +207 −0 debug/testsketches/BigNums/BigNums.pde
  20. +462 −0 debug/testsketches/BillsTest1/BillsTest1.pde
  21. +264 −0 debug/testsketches/GLCDTextExample/GLCDTextExample.pde
  22. +232 −0 debug/testsketches/regression/regression.pde
  23. +59 −0 debug/testsketches/scribble/scribble.pde
  24. BIN doc/GLCD_Documentation.pdf
  25. +8 −0 doc/GLCDref.htm
  26. +207 −0 examples/BigNums/BigNums.pde
  27. +299 −0 examples/GLCDdemo/GLCDdemo.pde
  28. +149 −0 examples/clockFace/AnalogClock.cpp
  29. +49 −0 examples/clockFace/AnalogClock.h
  30. +82 −0 examples/clockFace/clockFace.pde
  31. +284 −0 examples/life/life.pde
  32. +173 −0 fonts/Arial14.h
  33. +167 −0 fonts/Arial_bold_14.h
  34. +167 −0 fonts/Corsiva_12.h
  35. +157 −0 fonts/SystemFont5x7.h
  36. +116 −0 fonts/Verdana_digits_24.h
  37. +18 −0 fonts/allFonts.h
  38. +127 −0 fonts/fixednums15x31.h
  39. +92 −0 fonts/fixednums7x15.h
  40. +50 −0 fonts/fixednums8x16.h
  41. +1,773 −0 gText.cpp
  42. +662 −0 glcd.cpp
  43. +123 −0 glcd.h
  44. +21 −0 glcd_Buildinfo.h
  45. +33 −0 glcd_Config.h
  46. +384 −0 glcd_Device_PCD8544.cpp
  47. +81 −0 include/Streaming.h
  48. +70 −0 include/arduino_io.h
  49. +276 −0 include/gText.h
  50. +11 −0 include/glcd_Device.h
  51. +216 −0 include/glcd_Device_PCD8544.h
  52. +86 −0 readme.txt
@@ -0,0 +1,29 @@
+
+All of the files supplied with and comprising the Arduino GLCD library are
+either licensed under the terms of the GNU Lesser General Public License
+or are compatible with this license when the GLCD library code is used
+in the Arduino software environment.
+
+Files should have explicit licensing ageement statements in them.
+In the absence of of any licensing agreement statement,
+the license below shall apply.
+
+==============================================================================
+
+ GLCD is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 2.1 of the License, or
+ (at your option) any later version.
+
+ GLCD is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with GLCD. If not, see <http://www.gnu.org/licenses/>.
+
+==============================================================================
+Note that avrio.h is not LGPL but is available for use under the terms of
+the LGPL as long it is used with the GLCD library in the Arduino software environment.
+For use outside the Arduino GLCD library, see the avrio.h file for details.
Binary file not shown.
@@ -0,0 +1,34 @@
+/* ArduinoIcon32 bitmap file for GLCD library */
+/* Bitmap created from ArduinoIcon32.bmp */
+/* Date: 17 Jul 2010 */
+/* Image Pixels = 1088 */
+/* Image Bytes = 136 */
+
+#include <inttypes.h>
+#include <avr/pgmspace.h>
+
+#ifndef ArduinoIcon32_H
+#define ArduinoIcon32_H
+
+static uint8_t ArduinoIcon32[] PROGMEM = {
+ 34, // width
+ 32, // height
+
+ /* page 0 (lines 0-7) */
+ 0x0,0xc0,0x20,0x10,0x8,0xc8,0x88,0x8,0x8,0x10,0x20,0xc0,0x0,0x0,0x0,0x0,
+ 0x0,0x0,0x0,0x0,0xc0,0xf0,0xf8,0xf8,0xf8,0xf0,0xc0,0x0,0x0,0x0,0x0,0x0,
+ 0x0,0x0,
+ /* page 1 (lines 8-15) */
+ 0x7,0x18,0x20,0x40,0x80,0x9f,0x8f,0x87,0x82,0x40,0x20,0x18,0x7,0x0,0x0,0x0,
+ 0x0,0x80,0xf0,0xfe,0xff,0xff,0x1f,0x3,0x1f,0xff,0xff,0xfe,0xf0,0x80,0x0,0x0,
+ 0x0,0x0,
+ /* page 2 (lines 16-23) */
+ 0xc0,0x30,0x8,0x4,0xe2,0x22,0x22,0x22,0xe2,0x4,0x8,0x30,0xc0,0x0,0x0,0xe0,
+ 0xfc,0xff,0xff,0x7f,0x7f,0x78,0x78,0x78,0x78,0x78,0x7f,0x7f,0xff,0xff,0xfc,0xe0,
+ 0x0,0x0,
+ /* page 3 (lines 24-31) */
+ 0x1,0x6,0x8,0x10,0x23,0x22,0x22,0x22,0x23,0x10,0x8,0x6,0x1,0x18,0x3f,0x3f,
+ 0x3f,0xf,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xf,0x3f,0x3f,
+ 0x3f,0x18,
+};
+#endif
Binary file not shown.
@@ -0,0 +1,32 @@
+/* ArduinoIcon32x32.h bitmap file for GLCD library */
+/* Bitmap created from GLCD\bitmaps\ArduinoIcon32x32.bmp */
+/* Date: 12 Mar 2010 */
+
+#include <inttypes.h>
+#include <avr/pgmspace.h>
+
+#ifndef ArduinoIcon32x32_H
+#define ArduinoIcon32x32_H
+
+static uint8_t ArduinoIcon32x32[] PROGMEM = {
+ 32, // width
+ 32, // height
+
+ /* page 0 (lines 0-7) */
+ 0xc0,0x30,0x8,0x4,0x2,0xf2,0xe2,0xc2,0x82,0x4,0x8,0x30,0xc0,0x0,0x0,0x0,
+ 0x0,0x0,0x0,0xc0,0xf0,0xf8,0xf8,0xf8,0xf0,0xc0,0x0,0x0,0x0,0x0,0x0,0x0,
+
+ /* page 1 (lines 8-15) */
+ 0x1,0x6,0x8,0x10,0xa0,0xa7,0xa3,0xa1,0xa0,0x10,0x8,0x6,0x1,0x0,0x0,0x0,
+ 0x80,0xf0,0xfe,0xff,0xff,0x1f,0x3,0x1f,0xff,0xff,0xfe,0xf0,0x80,0x0,0x0,0x0,
+
+ /* page 2 (lines 16-23) */
+ 0x70,0x8c,0x2,0x1,0xf8,0x88,0x88,0x88,0xf8,0x1,0x2,0x8c,0x70,0x0,0xe0,0xfc,
+ 0xff,0xff,0x7f,0x7f,0x78,0x78,0x78,0x78,0x78,0x7f,0x7f,0xff,0xff,0xfc,0xe0,0x0,
+
+ /* page 3 (lines 24-31) */
+ 0x0,0x1,0x2,0x4,0x8,0x8,0x8,0x8,0x8,0x4,0x2,0x1,0x18,0x3f,0x3f,0x3f,
+ 0xf,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xf,0x3f,0x3f,0x3f,
+
+};
+#endif
Binary file not shown.
@@ -0,0 +1,49 @@
+//---------------------------------------------------------------------------
+// A header datafile for glcd bitmap created with bmp2glcd by S.Varjo
+// The glcd bitmap data contained in this file is in a format
+// suitable for use by the Arduino GLCD lib.
+// It contains embedded width and height format information.
+//
+// Ardino bitmap format support added by Bill Perry
+// (bperrybap@opensource.billsworld.billandterrie.com)
+//
+// 64x32 Arduino Icon.
+// This icon keeps the same "flavor" as the original Ardino Icon
+// but has been modified to fit on lcd displays that are only 32 pixels high
+// and has be limited to only 64 pixes wide.
+//
+// Created 2009-12-12 by Bill Perry (bperrybap@opensource.billsworld.billandterrie.com)
+//
+//---------------------------------------------------------------------------
+
+#ifndef _ArduinoIcon64x32_H
+#define _ArduinoIcon64x32_H
+
+#include <inttypes.h>
+#include <avr/pgmspace.h>
+
+static unsigned char ArduinoIcon64x32[] PROGMEM ={
+64, // bitmap width (arduino glcdlib format)
+32, // bitmap height (arduino glcdlib format)
+0x00, 0x00, 0xc0, 0x20, 0x10, 0x08, 0xc8, 0x88, 0x08, 0x08, 0x10, 0x20, 0xc0, 0x00, 0x00, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xf0, 0xf8, 0xf8, 0xf8, 0xf0, 0xc0, 0x00, 0x00, 0x00, 0x40,
+0x70, 0x0c, 0x30, 0xc0, 0x00, 0xc0, 0x30, 0x0c, 0x30, 0xc0, 0x00, 0xc0, 0x30, 0x08, 0x88, 0x48,
+0x28, 0x28, 0xf8, 0x20, 0x20, 0x40, 0x80, 0x40, 0x20, 0x10, 0x20, 0x98, 0x18, 0xc0, 0xc0, 0x00,
+
+0x00, 0x07, 0x18, 0x20, 0x40, 0x80, 0x9f, 0x8f, 0x87, 0x82, 0x40, 0x20, 0x18, 0x07, 0x00, 0x00,
+0x00, 0x00, 0x80, 0xf0, 0xfe, 0xff, 0xff, 0x1f, 0x03, 0x1f, 0xff, 0xff, 0xfc, 0xf0, 0x80, 0x00,
+0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x1c, 0x63, 0x80, 0x46,
+0x4a, 0x52, 0xe3, 0x52, 0x4a, 0x46, 0x80, 0x63, 0x1c, 0x02, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
+
+0x00, 0xc0, 0x30, 0x08, 0x04, 0xe2, 0x22, 0x22, 0x22, 0xe2, 0x04, 0x08, 0x30, 0xc0, 0x00, 0x00,
+0xe0, 0xfc, 0xff, 0xff, 0x7f, 0x7f, 0x78, 0x78, 0x78, 0x78, 0x78, 0x7f, 0x7f, 0xff, 0xff, 0xfc,
+0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
+0x02, 0x02, 0xff, 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+
+0x00, 0x01, 0x06, 0x08, 0x10, 0x23, 0x22, 0x22, 0x22, 0x23, 0x10, 0x08, 0x06, 0x01, 0x18, 0x3f,
+0x3f, 0x3f, 0x0f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0f, 0x3f,
+0x3f, 0x3f, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
+0x0a, 0x0a, 0x2b, 0x0a, 0x0a, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+
+};
+#endif //define _ArduinoIcon64x32_H
@@ -0,0 +1,7 @@
+/* allBitmaps.h bitmap header for GLCD library */
+/* This file is created automatically by the glcdMakeBitmap utility */
+/* Any edits to this file will be lost when glcdMakeBitmap is next run */
+
+#include "ArduinoIcon32.h"
+#include "ArduinoIcon32x32.h"
+#include "ArduinoIcon64x32.h"
@@ -0,0 +1,14 @@
+//
+// Pin configuration for the PCD8544 on the iTead Studio OverLoad
+//
+
+#ifndef _pcd5844_OverLoad_h
+#define _pcd5844_OverLoad_h
+
+#define GLCD_CS 5
+#define GLCD_RST 6
+#define GLCD_DC 7
+#define GLCD_SDIN 8
+#define GLCD_SCLK 9
+
+#endif // _pcd5844_OverLoad_h
@@ -0,0 +1,10 @@
+Copyright (c) 2005, The EasyBMP Project (http://easybmp.sourceforge.net)
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Oops, something went wrong.

0 comments on commit 7d37a4c

Please sign in to comment.