Giter Club home page Giter Club logo

adafruit-pcd8544-nokia-5110-lcd-library's Introduction

Adafruit PCD8544 Nokia 5110 LCD Library Build StatusDocumentation

This is a library for our Monochrome Nokia 5110 LCD Displays

Pick one up today in the Adafruit shop! ------> https://www.adafruit.com/product/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 must be included in any redistribution.

To install, use the Arduino Library Manager to search for 'Adafruit VCNL4010' and install the library.

You will also need the Adafruit GFX Graphics core which does all the circles, text, rectangles, etc. You can get it by searching for 'Adafruit GFX' in the Arduino Library Manager or check it out here: https://github.com/adafruit/Adafruit-GFX-Library

adafruit-pcd8544-nokia-5110-lcd-library's People

Contributors

andig avatar bxparks avatar colinta avatar drak7 avatar driverblock avatar evaherrada avatar hoffmannjan avatar hramrach avatar kai-morich avatar ladyada avatar microbuilder avatar paintyourdragon avatar sergev avatar siddacious avatar smetskoy-as avatar starcalc avatar tdicola avatar tyeth avatar yvest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adafruit-pcd8544-nokia-5110-lcd-library's Issues

Print

How to print messages in display? My compiler is visual studio + visual micro plugin! This is the warnings:
Adafruit_PCD8544.h:69:46: error: expected class-name before '{' token
class Adafruit_PCD8544 *:public Adafruit_GFX {
Sweet.ino:In function 'void setup()
Sweet.ino:11:10: error: 'class Adafruit_PCD8544' has no member named 'print
:display.print("Hello")
Error compiling
My project is called Sweet! Has no print or println method?

Using with "Hardware" SPI pins and SD/EthernetShield is not possible

Hello,
i am trying to get the 5110 LCD work with the Hardware SPI pins to reduce used pins.
The used Pins are:

  • MOSI on Pin 11
  • MISO on Pin 12 (not used)
  • SCK on Pin 13

It works quite fine until I add the "SD.begin(SD_CS_Pin);" then the display is hanging on the initialisation screen.

The Problem is described here too:
http://forum.arduino.cc/index.php?PHPSESSID=qs028iega6gc4vgn06tdt43ag3&topic=162167.0

So is it possible to get this LCD working on the hardware SPI-Pins or do i have to change them?

Thank you very much!

Pin 11 and 13 Changes?

Hi all.
I would like to know how to change the Pin 11 and Pin 13 inputs for the Nokia 5110 Adafruit PCD8544 sketch published.
Nowhere in the sketch is there reference to Pin11 and Pin 13. Only to the other pins.
Thanks

Temperature Coefficient

The PCD8544 provides the ability to adjust the temperature coefficient. This is not yet implemented in this library.

PCBD8544 Nokia 5110 library not working in SAMD21 architecture (Arduino Zero)

Hello,

I have a Nokia 5110 Display, and I am trying to compile the example code (pcdtest.ino) in an Arduino Zero board, I assume that the library has not yet been ported to this new architecture.

Actually I have one of the first Arduino.org M0-Pro board, but both, the Arduino.org and Arduino.cc are pretty similar, as you already know.

I get the following complation error using Arduino IDE 1.6.5:
(Sorry that error messages are in Spanish, but I think the messages are easy to understand)

Atención: platform.txt del núcleo 'Arduino SAMD (32-bits ARM Cortex-M0+) Boards' contiene recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" desfasada, automáticamente convertida a recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Considera el actualizar este núcleo.
C:\Users\quino\Documents\Arduino\libraries\arduino_183747\Adafruit_PCD8544.cpp: In member function 'void Adafruit_PCD8544::begin(uint8_t, uint8_t)':

C:\Users\qbiq\Documents\Arduino\libraries\arduino_183747\Adafruit_PCD8544.cpp:187:17: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'PortReg* {aka volatile unsigned char*}' in assignment

     clkport     = portOutputRegister(digitalPinToPort(_sclk));

                 ^

C:\Users\qbiq\Documents\Arduino\libraries\arduino_183747\Adafruit_PCD8544.cpp:189:17: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'PortReg* {aka volatile unsigned char*}' in assignment

     mosiport    = portOutputRegister(digitalPinToPort(_din));

                 ^

exit status 1
Error de compilación

Enhancement - move whole display

Following code moves whole area by specified amount of pixels to any of four directions. Code was not heavily tested and may contain bugs.

void Adafruit_PCD8544::moveDisplayDown(uint8_t pixels) {

  if (pixels>=LCDHEIGHT) {
    memset(pcd8544_buffer, 0, LCDWIDTH*LCDHEIGHT/8);
    return;
  }

  if (pixels>7) {
    memmove(&pcd8544_buffer[LCDWIDTH*((pixels)>>3)],&pcd8544_buffer[0],LCDWIDTH*((LCDHEIGHT-pixels)>>3));
    memset(pcd8544_buffer, 0, LCDWIDTH*((pixels)>>3));
  }

  if (pixels % 8 != 0) {
    for (int i=0;i<LCDWIDTH;i++) {
      uint8_t oldpixels;
      uint8_t newpixels = 0;
      for (int j=0;j<LCDHEIGHT/8;j++) {
        oldpixels = pcd8544_buffer[i+j*LCDWIDTH]>>(8-(pixels % 8));
        pcd8544_buffer[i+j*LCDWIDTH] = (pcd8544_buffer[i+j*LCDWIDTH] << (pixels % 8))|newpixels;
        newpixels=oldpixels;
      }
    }
  }
}

void Adafruit_PCD8544::moveDisplayUp(uint8_t pixels) {

  if (pixels>=LCDHEIGHT) {
    memset(pcd8544_buffer, 0, LCDWIDTH*LCDHEIGHT/8);
    return;
  }

  if (pixels>7) {
    memmove(&pcd8544_buffer[0],&pcd8544_buffer[LCDWIDTH*((pixels)>>3)],LCDWIDTH*((LCDHEIGHT-pixels)>>3));
    memset(&pcd8544_buffer[LCDWIDTH*((LCDHEIGHT-pixels)>>3)], 0, LCDWIDTH*((pixels)>>3));
  }

  if (pixels % 8 != 0) {
    for (int i=0;i<LCDWIDTH;i++) {
      uint8_t oldpixels;
      uint8_t newpixels = 0;
      for (int j=0;j<LCDHEIGHT/8;j++) {
        oldpixels = pcd8544_buffer[i+(LCDHEIGHT/8-1-j)*LCDWIDTH] << (8-(pixels % 8));
        pcd8544_buffer[i+(LCDHEIGHT/8-1-j)*LCDWIDTH] = (pcd8544_buffer[i+(LCDHEIGHT/8-1-j)*LCDWIDTH] >> (pixels % 8))|newpixels;
        newpixels=oldpixels;
      }
    }
  }
}

void Adafruit_PCD8544::moveDisplayLeft(uint8_t pixels) {

  if (pixels==0) {
    return;
  }

    if (pixels>=LCDWIDTH) {
    memset(pcd8544_buffer, 0, LCDWIDTH*LCDHEIGHT/8);
    return;
  }

  for (int i=0;i<LCDHEIGHT/8;i++) {
    memmove(&pcd8544_buffer[i*LCDWIDTH],&pcd8544_buffer[i*LCDWIDTH+pixels],LCDWIDTH-pixels);
    memset(&pcd8544_buffer[i*LCDWIDTH-pixels], 0, pixels);
  }
}

void Adafruit_PCD8544::moveDisplayRight(uint8_t pixels) {

  if (pixels==0) {
    return;
  }

    if (pixels>=LCDWIDTH) {
    memset(pcd8544_buffer, 0, LCDWIDTH*LCDHEIGHT/8);
    return;
  }

  for (int i=0;i<LCDHEIGHT/8;i++) {
    memmove(&pcd8544_buffer[i*LCDWIDTH+pixels],&pcd8544_buffer[i*LCDWIDTH],LCDWIDTH-pixels);
    memset(&pcd8544_buffer[(i+1)*LCDWIDTH-pixels], 0, pixels);
  }
}

Where to get font sign size in pixels to locate the sign in the middle of the screen?

Hi,

I have the following problem: i need to put random letter on the nokia 5110 display. the letter should be located in the middle of the display area. Letter font can vary as well as its size. As pixels x pixels size of each sign vary it is very difficult to calculate X,Y starting point of cursor to achieve the goal - sign displayed in the middle of the screen irrespecitive of its size, font and screen orientation...

Please point me how to get a sign size info from library.

SPI transaction switching required

Arduino board: Teensy 3.2

Using this library together with the SD library on the Teensy 3.2 does not work, as the SPI configurations are incompatible.

The Problem has been solved by changing the SPI send functions to:

void Adafruit_PCD8544::command(uint8_t c) {
  SPI.beginTransaction(SPI_SPEED);

  digitalWrite(_dc, LOW);
  if (_cs > 0)
    digitalWrite(_cs, LOW);
  spiWrite(c);
  if (_cs > 0)
    digitalWrite(_cs, HIGH);

  SPI.endTransaction();
}

void Adafruit_PCD8544::data(uint8_t c) {
  SPI.beginTransaction(SPI_SPEED);

  digitalWrite(_dc, HIGH);
  if (_cs > 0)
    digitalWrite(_cs, LOW);
  spiWrite(c);
  if (_cs > 0)
    digitalWrite(_cs, HIGH);

  SPI.endTransaction();
}

The start of the begin() function has been altered to:

if (!isHardwareSPI()) {
    // Setup hardware SPI.
    SPI.begin();
  }
  else {
    // Setup software SPI.

And the following line has been added to the Header file:
#define SPI_SPEED SPISettings(7500000, MSBFIRST, SPI_MODE0)

Rotated screen only displays 6 rows, not 12?

Hi there,
When I rotate the screen (to portrait) the screen still only displays 6 rows. Not 12? So the bottom half of the screen is blank, when I thought it would contain the balance of my text? Is this normal? I've searched the forum, and the internet for an answer, but can't find one? Thanks alot.
Paul

Garbage on screen when drawing circles that are partially outside display

image

I was getting strange artifacts while running the library demo on Arduino Uno. Almost all images from demo worked but there was a glitch before the black circle demo. I looked at it more closely and it turned out to be caused by the drawCircle method.

Replacing the default demo with this code should illustrate the problem. Looks like an issue with proper cropping the pixels before sending them to the display:

void testdrawcircle(void) {
  display.drawCircle(display.width()/2, display.height()/2, 40, BLACK);
  display.display();
  /*
  for (int16_t i=0; i<display.height(); i+=2) {
    Serial.print("i = "); Serial.println(i);
    display.drawCircle(display.width()/2, display.height()/2, i, BLACK);
    display.display();
  }
  */
  delay(3000);
}

I use some cheap PCD8544 clone from aliexpress without any markings. I run it on 3.3V with level shifters, the voltage and all looks fine.

Println off-by-one wrapping error

The current display.println() implementation has built-in wrapping logic, but there is a corner case where it is really hard to work with - where you are printing exactly an entire line of characters.

Unfortunately, the println logic of this library doesn't recognise the corner case of handling a full line of characters, when both wrapping logic and end-of-string logic trigger a newline. In this case, only one newline should be generated, not two.

If you print less than a full line, or more than a full line, then the bug doesn't arise. Of course, this defeats the purpose of the auto-wrapping logic in the first place.

Working around this feature is pretty hard as you have to independently keep track of whether you are printing exactly a full line of characters, and select print or println accordingly.

In my case, I have a pressure measurement being printed to screen which is currently reading 945.46hPA but might roll over to 1000.00hPa. In the worst case (1000.00hPa) there are enough characters to fill the line. Otherwise there will be one empty character at the end.

So therefore when it's a low-pressure day, I have to use println to cause the cursor to move to the next line, and on a high-pressure day I should only use print. That's one hell of a transient bug!

Teensy 3.0 and above support is needed

Error compiling the test code for teensy board
Adafruit_PCD8544.cpp: In member function 'void Adafruit_PCD8544::begin(uint8_t, uint8_t)':
Adafruit_PCD8544.cpp:287:13: error: cannot convert 'volatile uint8_t* {aka volatile unsigned char*}' to 'PortReg* {aka volatile long unsigned int*}' in assignment clkport = portOutputRegister(digitalPinToPort(_sclk));
Adafruit_PCD8544.cpp:289:14: error: cannot convert 'volatile uint8_t* {aka volatile unsigned char*}' to 'PortReg* {aka volatile long unsigned int*}' in assignment mosiport = portOutputRegister(digitalPinToPort(_din));
Error compiling for board Teensy 3.2 / 3.1.

  • Teensy board used: Teensy 3.2

  • Arduino IDE version **Arduino IDE ver. 1.8.13

Solving problems with bad LCD contacts

See here:
http://www.avdweb.nl/arduino/hardware-interfacing/nokia-5110-lcd.html

I have changed the PCD8544 library a bit and made it more robust to bad LCD contacts. Maybe someone can implement this?

The LCD is connected to the PCB by means of a conductive rubber strip; this sometimes causes contact problems and a black screen. Restoring the connection doesn't help; the LCD must be re-initialized by manually restarting the Arduino. This is inconvenient.

The LCD application can be made more robust by initializing the LCD repeatedly. This allows disconnecting and reconnecting the LCD during operation. The disadvantage is that the LCD flickers slightly during initialization, but if this happens just every 2 seconds, it is not bothersome.

I have changed the PCD8544 library to add this functionality. Maybe the flickering can be reduced by improving the library further.

ESP8266 support

Is the Adafruit-PCD8544-Nokia-5110-LCD lib already fully ESP8266 compatible?

Following lines for example have caused a compiler issue (Adafruit_PCD8544.cpp 193ff.)

clkport     = portOutputRegister(digitalPinToPort(_sclk));
clkpinmask  = digitalPinToBitMask(_sclk);
mosiport    = portOutputRegister(digitalPinToPort(_din));
mosipinmask = digitalPinToBitMask(_din);

last few pixels not working properly

When I run the example code and pay attention to the pixels from 83,40 to 83,47, I see pixels not lit when I expect them and lit when I don't.

try running this code:

for (int y=0; y < 48; y++){
nokia.clear();
for (int ny=0; ny < 48; ny=ny+2){
nokia.setPixel(82, ny, BLACK);
}

nokia.setPixel(83, y, BLACK);
nokia.display();        // show the changes to the buffer
Serial.print("pixel @ 83,");
Serial.println (y);
while(!Serial.available());
Serial.read();

}

When I get to pixel 83,40, no pixels in the 83 colums light up.
At 83,41, it's actually 40 that light up. They stay off by one till I hit 47.

This seems to affect many more function then the setPixel, as we see artifacts during the testdrawrect() part of the demo code.

I have not had time to investigate more, but if anyone has a clue where the issue might be, let me know!

Is there a list of the display classes for this library?

I am a Noob to the Ardrino world and fining the PCD8544 library useful, but I dont understand some of the classes.
I can see the example using things like
display.display()
display.setCursor(0,0)
display.print(NewValue)
display.println("Hello World")
But what else is there?
How do I find out?
How do I find out the syntax and use of the classes?

many thanks
Kintara 8-)

Vertical mode?

As I look at the PCD8544 datasheet and the library code, I am a bit puzzled. The code sends command 0x20 to the PCD8544, which according to the datasheet should put the PCD8544 in horizontal data mode (vertical data mode should be 0x22 per datasheet). But Adafruit_PCD8544::display() is sending data formatted as per the vertical mode specs. And yet it works fine on the cheap "Nokia 5110" display I bought an aliexpress. Still, it bothers me not knowing what is going on.

I wonder if the cheap Nokia 5110 displays don't use some clone controller that doesn't have a horizontal mode. I tried using 0x22 or 0x20, and it made no difference. But I still think it would be better if the code followed the datasheet and used the 0x22 command, even if 0x20 happens to work for the clones?

Or maybe I'm just being stupid and not understanding the code and/or datasheet.

Compile error:

A compile time error is showing up to me

In Nokia_LCD.cpp line 323: In member function 'bool Nokia_LCD::print(long unsigned int)'

variable-sized object 'number_as_string' may not be initialized

char number_as_string[length_as_string] = {0}; 

This solution has worked for me 💯

char number_as_string[length_as_string];
memset(  number_as_string, 0, length_as_string*sizeof(char) );

Issue using library with Arduino 101

I currently am using the Nokia LCD screen to display RFID tag information using an Arduino Uno. For some reason, when trying to use the same code with an Arduino 101, I face the following error messages:
Arduino: 1.8.2 (Mac OS X), Board: "Arduino/Genuino Uno"

Build options changed, rebuilding all
/Users/paulhage/Desktop/Addicore_RFID_Example/Addicore_RFID_Example.ino: In function ‘void loop()’:
/Users/paulhage/Desktop/Addicore_RFID_Example/Addicore_RFID_Example.ino:100:16: warning: large integer implicitly truncated to unsigned type [-Woverflow]
str[1] = 0x4400;
^
/Users/paulhage/Desktop/Addicore_RFID_Example/Addicore_RFID_Example.ino:93:10: warning: unused variable ‘i’ [-Wunused-variable]
uchar i, tmp, checksum1;
^
/Users/paulhage/Desktop/Addicore_RFID_Example/Addicore_RFID_Example.ino:93:13: warning: unused variable ‘tmp’ [-Wunused-variable]
uchar i, tmp, checksum1;
^
/Users/paulhage/Desktop/Addicore_RFID_Example/Addicore_RFID_Example.ino:96:15: warning: unused variable ‘RC_size’ [-Wunused-variable]
uchar RC_size;
^
/Users/paulhage/Desktop/Addicore_RFID_Example/Addicore_RFID_Example.ino:97:15: warning: unused variable ‘blockAddr’ [-Wunused-variable]
uchar blockAddr; //Selection operation block address 0 to 63
^
In file included from /Users/paulhage/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino/WString.h:34:0,
from /Users/paulhage/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino/Arduino.h:108,
from /Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.h:5,
from /Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:34:
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp: In member function ‘void Adafruit_GFX::drawChar(int16_t, int16_t, unsigned char, uint16_t, uint16_t, uint8_t)’:
/Users/paulhage/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino/avr/pgmspace.h:100:60: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define pgm_read_dword(addr) ((const unsigned long )(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:60:42: note: in expansion of macro ‘pgm_read_dword’
#define pgm_read_pointer(addr) ((void )pgm_read_dword(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:753:43: note: in expansion of macro ‘pgm_read_pointer’
GFXglyph glyph = &(((GFXglyph )pgm_read_pointer(&gfxFont->glyph))[c]);
^
/Users/paulhage/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino/avr/pgmspace.h:100:60: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define pgm_read_dword(addr) (
(const unsigned long )(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:60:42: note: in expansion of macro ‘pgm_read_dword’
#define pgm_read_pointer(addr) ((void )pgm_read_dword(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:754:39: note: in expansion of macro ‘pgm_read_pointer’
uint8_t bitmap = (uint8_t )pgm_read_pointer(&gfxFont->bitmap);
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp: In member function ‘virtual size_t Adafruit_GFX::write(uint8_t)’:
/Users/paulhage/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino/avr/pgmspace.h:100:60: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define pgm_read_dword(addr) (
(const unsigned long )(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:60:42: note: in expansion of macro ‘pgm_read_dword’
#define pgm_read_pointer(addr) ((void )pgm_read_dword(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:837:50: note: in expansion of macro ‘pgm_read_pointer’
GFXglyph glyph = &(((GFXglyph )pgm_read_pointer(
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp: In member function ‘void Adafruit_GFX::charBounds(char, int16_t
, int16_t
, int16_t
, int16_t
, int16_t
, int16_t
)’:
/Users/paulhage/Library/Arduino15/packages/Intel/hardware/arc32/2.0.2/cores/arduino/avr/pgmspace.h:100:60: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#define pgm_read_dword(addr) (
(const unsigned long )(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:60:42: note: in expansion of macro ‘pgm_read_dword’
#define pgm_read_pointer(addr) ((void )pgm_read_dword(addr))
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-GFX-Library-master/Adafruit_GFX.cpp:952:50: note: in expansion of macro ‘pgm_read_pointer’
GFXglyph glyph = &(((GFXglyph )pgm_read_pointer(
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-PCD8544-Nokia-5110-LCD-library-master/Adafruit_PCD8544.cpp: In member function ‘void Adafruit_PCD8544::begin(uint8_t, uint8_t)’:
/Users/paulhage/Documents/Arduino/libraries/Adafruit-PCD8544-Nokia-5110-LCD-library-master/Adafruit_PCD8544.cpp:192:17: error: cannot convert ‘uint32_t
{aka long unsigned int
}’ to ‘PortReg
{aka volatile unsigned char
}’ in assignment
clkport = portOutputRegister(digitalPinToPort(_sclk));
^
/Users/paulhage/Documents/Arduino/libraries/Adafruit-PCD8544-Nokia-5110-LCD-library-master/Adafruit_PCD8544.cpp:194:17: error: cannot convert ‘uint32_t
{aka long unsigned int
}’ to ‘PortReg
{aka volatile unsigned char
}’ in assignment
mosiport = portOutputRegister(digitalPinToPort(_din));
^
exit status 1
Error compiling for board Arduino/Genuino 101.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Is anyone aware of what may be causing this ?
Does the library not work with the 101?

Any information would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.