Ported: Adafruit-PCD8544-Nokia-5110-LCD-library

Please do not post requests
User avatar
Kenjutsu
Posts: 134
Joined: Fri May 29, 2015 8:26 am

Ported: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by Kenjutsu » Sun Jul 12, 2015 12:28 pm

Just a quick note to confirm that Adafruit-PCD8544-Nokia-5110-LCD-library works "out of the box" ;)

My mistake :oops: I does not work "out of the box”. See this post by madias http://www.stm32duino.com/viewtopic.php ... =424#p3954 a bit further down, with my reply.
Last edited by Kenjutsu on Mon Jul 13, 2015 10:47 am, edited 1 time in total.
Pieter

OSX: 10.12.6
Arduino IDE: 1.6.12
Blue pill STM32F103C8T6 Dev Board
Maple Mini Clones

madias
Posts: 813
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by madias » Sun Jul 12, 2015 9:46 pm

I think Ray (mrburnette) will love it :)
Seriously: I think we all have done a good job with the compatibility definitions the last months, because I know about 6 or 8 months before the library didn't worked for me (for some circumstances I ported a slimmer one -> viewtopic.php?f=13&t=7 )
So: "snake" here we come again! :)

Edit: For all price hunters: Meanwhile the display costs about 2USD (free shipping) for 5pcs. So they are back on place #1 of the cheapest graphic display modules. But you can grab a 128x128 ILI9163C TFT for about 4.5USD (with superb DMA driver support thanks to victor)
http://www.aliexpress.com/item/5pcs-blu ... 54889.html

User avatar
ahull
Posts: 1646
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by ahull » Sun Jul 12, 2015 11:04 pm

As well as being cheapest the PCD8544 displays also score pretty well top in the low power consumption rankings.

Assuming you power them directly from 3v3 and don't use the on board regulator that is usually included on these boards and don't use a back light, they consume something in the order of 200uA.

They are also usable (just) without a backlight, or with the backlight set very low.. and a lot cheaper than e-ink displays.

You don't get many pixels for your buck, so colour displays are better for pretty much every other application, and Mr Google suggests some of the 1.8" OLED displays get within a similar order of magnitude when it comes to power consumption.
- Andy Hull -

User avatar
RogerClark
Posts: 7413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by RogerClark » Sun Jul 12, 2015 11:15 pm

Just one note of caution on these cheap Nokia 5110 displays

I have noticed that a lot of the cheap Nokia 5110 displays I have received recently were not new displays. They were on a new PCB, but the displays were almost certainly recycled from old mobile phones.
One had visible burn in of a smuggy logo (I could not make out what it was), another one had a scratch, other have dirt between the metal surround and the glass of the display

I complained and got a partial refund from an eBay vendor in one case - perhaps I should have demanded a full refund....

User avatar
ahull
Posts: 1646
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by ahull » Mon Jul 13, 2015 12:12 am

I suspect a lot of these displays are "recycled", hence the low price. I don't mind that too much so long as they look new. I am happier recycling them than sending them to landfill. There is no excuse for selling them in a scruffy, damaged or non working condition however.
- Andy Hull -

User avatar
RogerClark
Posts: 7413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by RogerClark » Mon Jul 13, 2015 12:44 am

Andy,

I'm fine with getting recycled items if I know they are recycled and in good condition.

I think I was being fair by paying half price for the ones with burn in and a scratch etc, in fact more than fair really, as I can only use them for testing, and not even for prototype items that I'd show commercially.

User avatar
mrburnette
Posts: 1877
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by mrburnette » Mon Jul 13, 2015 1:27 am

RogerClark wrote:Andy,

I'm fine with getting recycled items if I know they are recycled and in good condition.

I think I was being fair by paying half price for the ones with burn in and a scratch etc, in fact more than fair really, as I can only use them for testing, and not even for prototype items that I'd show commercially.

FYI.... the polish used for motorcycle helmet visors worjs great to remove scratches. I disassemble every one I get to clean - especially the elastomeric (Zebra) connector... 100% isopropyl is your friend as is an air duster.
Post by madias » Sun Jul 12, 2015 5:46 pm

I think Ray (mrburnette) will love it :)
I seem to be a bit transparent ... :lol:


Ray

User avatar
Kenjutsu
Posts: 134
Joined: Fri May 29, 2015 8:26 am

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by Kenjutsu » Mon Jul 13, 2015 7:07 am

mrburnette wrote:
Post by madias » Sun Jul 12, 2015 5:46 pm

I think Ray (mrburnette) will love it :)
I seem to be a bit transparent ... :lol:


Ray
Ray, I love these little displays as well ;)
Pieter

OSX: 10.12.6
Arduino IDE: 1.6.12
Blue pill STM32F103C8T6 Dev Board
Maple Mini Clones

madias
Posts: 813
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by madias » Mon Jul 13, 2015 9:25 am

hm. I wont run "out of the box" for me, following changes are necessary:
Adafruit_PCD8544.h
Line 69

Code: Select all

#define PCD8544_SPI_CLOCK_DIV SPI_CLOCK_DIV8
and line 35-38

Code: Select all

#else
  typedef volatile uint32_t PortReg;
  typedef uint32_t PortMask;
#endif
If someone uses the IDE for other platform (AVR,....) some #ifdef's are necessary. (I don't need that).
SW and HW SPI successfully tested.

User avatar
Kenjutsu
Posts: 134
Joined: Fri May 29, 2015 8:26 am

Re: Working: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by Kenjutsu » Mon Jul 13, 2015 10:36 am

Thanks madias!!

Sorry for that mistake by me :oops:. I did have the following in the .h file

Code: Select all

  typedef volatile uint32_t PortReg;
  typedef uint32_t PortMask;
but clearly I forgot about it :oops: :o . For me the default SPI_CLOCK_DIV4 worked fine. However, I applied all the fixes including some #ifdef's, and I tested it on an Arduino Pro Mini (for a baseline) and a Blue Pill STM32duino (both HW and SW SPI).

Here is my port: https://github.com/KenjutsuGH/Adafruit- ... CD-library
Pieter

OSX: 10.12.6
Arduino IDE: 1.6.12
Blue pill STM32F103C8T6 Dev Board
Maple Mini Clones

Post Reply