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

Please do not post requests
madias
Posts: 813
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

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

Post by madias » Mon Jul 13, 2015 8:42 pm

Sorry for that mistake by me
:) Meanwhile most of us are "slightly" advanced to call such things "out of the box" ;) Especially all adafruit libraries are very similar.
Strangely SPI_CLOCK_DIV4 wont function to me, maybe a other module? To keep on the safe side, try it first with SPI_CLOCK_DIV8 than you can speed up (as you can "speed up" a pcd8544....)

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

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

Post by Kenjutsu » Tue Jul 14, 2015 8:51 am

madias wrote: :) Meanwhile most of us are "slightly" advanced to call such things "out of the box" ;)
You are being very modest ;) Although I have been programming for about 25 years, I have only been tinkering with MCUs for about a year. You guys are on a totally different level ;) 8-)

I remember when I started programming, way back in the day, using GW Basic. Then it was a case of trying something until it works, no design, test, implement etc. I think that is were I am currently with the MCU programming: just trying something until it works :)
OSX: 10.12.5
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: Ported: Adafruit-PCD8544-Nokia-5110-LCD-library

Post by madias » Tue Jul 14, 2015 9:16 am

I started with AVR-arduino about 3-4 years ago (I only wanted to build a multi switch for my guitar pedal board) with no real knowledge (soldered only stomp boxes before, but c++ what's that?). I had to rely on other people writing code/libraries, so I didn't care what's under the hood. the big jump for me was switching to TIVA TMC-123 and energia with the superb datasheets from TI so I was getting into the deep. Next step was PIC32 with chipkit/UECIDE and then STM32duino. This was the next BIG jump. Only a few people involved into the project so everybody was "forced" to introduce himself: Rewriting libraries, testing and compiling upload tools, tweaking bootloaders, linker scripts... so the whole stuff a normal "arduino" user does not even know that it exists. So the frustration learning curve with this project is extremely high or you'll leave it - but this is all the fun about it :)

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

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

Post by Kenjutsu » Sun Jul 19, 2015 1:28 pm

I updated the example program on Github with the following:

Code: Select all

// For the STM32F1:
//   MOSI - on pin PA7 (Maple Mini: also know as pin 4)
//   SCK  - on PA5 (Maple Mini: also know as pin 6)
//
//#if defined (__STM32F1__)
//  Adafruit_PCD8544 display = Adafruit_PCD8544(PA2, PA3, PA4);
//#else
// Adafruit_PCD8544 display = Adafruit_PCD8544(5, 4, 3);
//#endif
It just clarifies which MOSI and SCK pins to use ;)
OSX: 10.12.5
Arduino IDE: 1.6.12
Blue pill STM32F103C8T6 Dev Board
Maple Mini Clones

User avatar
WereCatf
Posts: 166
Joined: Sat Apr 16, 2016 5:30 pm

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

Post by WereCatf » Tue Apr 19, 2016 2:48 am

I do not know if it's frowned upon here or not for me to latch on to other people's threads or if you people would instead prefer me to make a whole new thread for this, but since we are talking about the Adafruit PCD8544-library I do have a port of it available at https://github.com/WereCatf/Adafruit-PC ... CD-library

Currently the dev-branch is the most up-to-date, I didn't merge it yet because I didn't test it properly. See https://github.com/WereCatf/Adafruit-PC ... /README.md for the interesting stuff (or if the branch doesn't exist anymore then I've merged it and it can be found at https://github.com/WereCatf/Adafruit-PC ... /README.md instead)

zgoda
Posts: 1
Joined: Mon Oct 10, 2016 2:40 pm

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

Post by zgoda » Mon Oct 10, 2016 2:48 pm

How do you overcome this error:

Code: Select all

In file included from src/main.cpp:3:0:
.piolibdeps/Adafruit GFX Library_ID13/Adafruit_GFX.h:77:18: error: conflicting return type specified for 'virtual void Adafruit_GFX::write(uint8_t)'
virtual void   write(uint8_t);
^
In file included from /home/jazg/.platformio/packages/framework-arduinoststm32/STM32F1/cores/maple/HardwareSerial.h:38:0,
from /home/jazg/.platformio/packages/framework-arduinoststm32/STM32F1/cores/maple/wirish.h:69,
from /home/jazg/.platformio/packages/framework-arduinoststm32/STM32F1/cores/maple/Arduino.h:30,
from src/main.cpp:1:
/home/jazg/.platformio/packages/framework-arduinoststm32/STM32F1/cores/maple/Print.h:39:20: error:   overriding 'virtual size_t Print::write(uint8)'
virtual size_t write(uint8 ch) = 0;
Adafruit lib and its forks seems to depend on Adafruit GFX lib.

DrBanana
Posts: 51
Joined: Fri Apr 22, 2016 11:15 am

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

Post by DrBanana » Mon Apr 17, 2017 4:21 am

The ported library doesn't work with HW SPI. While defining pins PA5 and PA7(software SPI), It works.


https://github.com/KenjutsuGH/Adafruit- ... CD-library

arkabhowmick
Posts: 7
Joined: Tue Jul 25, 2017 3:44 pm

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

Post by arkabhowmick » Wed Jul 26, 2017 3:01 am

hello madias.....your solution is not working for me..... i have tried connecting nokia lcd to both pins 7,6,5,4,3 and pins 31,30,29,28,27 ..... and it didnt work on either.

Post Reply