Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated example, all good now

  • Loading branch information...
commit dea17bc270dcb4bffc2161ecb0adf9624ac7135a 1 parent 03190f6
Limor "Ladyada" Fried ladyada authored
Showing with 44 additions and 0 deletions.
  1. +18 −0 examples/pcdtest/pcdtest.pde
  2. +26 −0 license.txt
18 examples/pcdtest/pcdtest.pde
View
@@ -1,3 +1,21 @@
+/*********************************************************************
+This is an example sketch for our Monochrome Nokia 5110 LCD Displays
+
+ Pick one up today in the adafruit shop!
+ ------> http://www.adafruit.com/products/338
+
+These displays use SPI to communicate, 4 or 5 pins are required to
+interface
+
+Adafruit invests time and resources providing this open source code,
+please support Adafruit and open-source hardware by purchasing
+products from Adafruit!
+
+Written by Limor Fried/Ladyada for Adafruit Industries.
+BSD license, check license.txt for more information
+All text above, and the splash screen must be included in any redistribution
+*********************************************************************/
+
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
26 license.txt
View
@@ -0,0 +1,26 @@
+Software License Agreement (BSD License)
+
+Copyright (c) 2012, Adafruit Industries
+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. Neither the name of the copyright holders nor the
+names of its contributors may be used to endorse or promote products
+derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''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 HOLDER 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.

1 comment on commit dea17bc

KyleSoehn

I still Can't get this code to work I get a large amount of errors

"In file included from pcdtest.cpp:19:
/Users/kylesoehn/Documents/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:6: error: stray '\302' in program......
/Users/kylesoehn/Documents/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:6: error: stray '\267' in program
....
Users/kylesoehn/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/stdlib.h:143: error: 'size_t' has not been declared
/Users/kylesoehn/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/stdlib.h:144: error: 'size_t' has not been declared
/Users/kylesoehn/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/stdlib.h:175: error: 'size_t' has not been declared
....
" I've poured over every tutorial and tried a bunch of stuff to get it to work. Any help would be appreciated because I'm at the end of my rope.
I'm using Mac OSX. The first time I had to deivate from the instructions in the tutorial was when it said click on the download button which didn't exists.

-Kyle

Please sign in to comment.
Something went wrong with that request. Please try again.