Giter Club home page Giter Club logo

Comments (5)

vamsee227 avatar vamsee227 commented on June 28, 2024 1

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.

drak7 avatar drak7 commented on June 28, 2024

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.

vamsee227 avatar vamsee227 commented on June 28, 2024

Okay, thanks.

from adafruit-pcd8544-nokia-5110-lcd-library.

FerGT50 avatar FerGT50 commented on June 28, 2024

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.

ladyada avatar ladyada commented on June 28, 2024

this should be fixed now with the move to busio!

from adafruit-pcd8544-nokia-5110-lcd-library.

Related Issues (20)

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.