Comments (5)
It worked after editing the header file (H file). After changing "uint32_t" in these lines
#else
typedef volatile uint32_t PortReg; ///< PortReg for other chips
typedef uint32_t PortMask; ///< PortMask for other chips
#endif
Changed to "uint8_t"
#else
typedef volatile uint8_t PortReg; ///< PortReg for other chips
typedef uint8_t PortMask; ///< PortMask for other chips
#endif
I request you to update the library by providing the support for Teensy 3.0 and above boards
Thanks
Vamsee
from adafruit-pcd8544-nokia-5110-lcd-library.
By default the example uses software SPI, switching to hardware SPI should fix it.
The port registers on the Teensy 3 are emulated as 8-bit for compatibility with Arduino so we could check for that board and use the 8-bit defines. The actual port registers for the teensy are 32-bit and can be used directly, that would be the better way to handle it. See this teensy forum post and this one for more info.
from adafruit-pcd8544-nokia-5110-lcd-library.
Okay, thanks.
from adafruit-pcd8544-nokia-5110-lcd-library.
Same problem here. Applying @vamsee227 corrections worked!
An update to the library to automatically account for 32 bit Teensies would be nice indeed!
Like:
#if defined(SAM3X8E) || defined(ARDUINO_ARCH_SAMD)
typedef volatile RwReg PortReg; ///< PortReg for SAMD
typedef uint32_t PortMask; ///< PortMask for SAMD
#elif defined(AVR) || defined (TEENSYDUINO)
typedef volatile uint8_t PortReg; ///< PortReg for AVR
typedef uint8_t PortMask; ///< PortMask for AVR
#else
typedef volatile uint32_t PortReg; ///< PortReg for other chips
typedef uint32_t PortMask; ///< PortMask for other chips
#endif
from adafruit-pcd8544-nokia-5110-lcd-library.
this should be fixed now with the move to busio!
from adafruit-pcd8544-nokia-5110-lcd-library.
Related Issues (20)
- Using with "Hardware" SPI pins and SD/EthernetShield is not possible HOT 3
- missing #ifndef in header can cause compilation trouble HOT 1
- ESP8266 support HOT 24
- Print HOT 4
- Enhancement - move whole display HOT 1
- PCBD8544 Nokia 5110 library not working in SAMD21 architecture (Arduino Zero) HOT 7
- Display only 13 characters instead of 14 on 1 line HOT 2
- SPI transaction switching required HOT 1
- Issue using library with Arduino 101 HOT 2
- Where to get font sign size in pixels to locate the sign in the middle of the screen? HOT 1
- Is there a list of the display classes for this library? HOT 1
- Vertical mode? HOT 2
- Lattepanda with leonardo arduino. HOT 2
- Pin 11 and 13 Changes? HOT 1
- Is this library is not maintained anymore? HOT 2
- Temperature Coefficient
- Garbage on screen when drawing circles that are partially outside display HOT 7
- Compile error: HOT 1
- Rotated screen only displays 6 rows, not 12? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit-pcd8544-nokia-5110-lcd-library.