yjoeyj
October 31, 2022, 3:29am
1
Hi there,
I’m trying to make the Sparkfun LCD 5110 work with the Artemis Redboard Nano, but struggle to get anything printed on the screen.
I’ve tried the library of:
https://github.com/baghayi/Nokia_5110
I’ve tested the basic sketch with the Arduino Uno and Arduino Adalogger M0, works both fine. But doesn’t seem to do anything when uploaded to the Artemis Nano.
Following pins were used:
#define RST 6
#define CE 8
#define DC 7
#define DIN 12
#define CLK 11
I’ve also tried the sketch on the ‘hook-up guide’ here:
https://github.com/sparkfun/GraphicLCD_ … CD-Example
Which actually works on the Uno, but can’t be compiled on the Artemis Nano; following error message:
‘class arduino::MbedSPI’ has no member named ‘setDataMode’
Any directions on how to get the first library working on the Nano?
Some suggestions regarding the error message can be found here: https://forum.arduino.cc/t/solved-spi-o … ble/606790
One of them is to update library via IDE Library Manager.
yjoeyj
November 2, 2022, 12:39am
3
Thanks for your reply.
There doesn’t seem any library to called by either sketches. I did update the board to latest version. But neither seems to help.
For Sparkfun’s example sketch, changing:
SPI.setDataMode(SPI_MODE0);
SPI.setBitOrder(MSBFIRST);
To:
SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE0));
solved the compiling error on the Artemis Nano, but didn’t seem to solve the problem with LCD.
yjoeyj
November 2, 2022, 12:49am
4
Uploaded the wrong sketch.
Changing the following did work!
SPI.setDataMode(SPI_MODE0);
SPI.setBitOrder(MSBFIRST);
To:
SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE0));