Comments (3)
I'm having the same issue on a WROOM after updating the esp32 core to current version.
Looking at the library file, I see that the constructor calls 'begin(16,1)'.
Calling 'begin(16,1)' at the end of the constructor leads to an endless delay because -it seems that- the 'delayMicroseconds()' function does not work yet at that point of the initialization. For some reason, it used to work with an older core (V3.3).
The program gets halted even before being able to output anything on the Serial.
Commenting out the 'begin(16,1)' call from the 'LiquidCrystal::init' function in 'LiquidCrystal.cpp' and placing it in the sketch (where it should be already, with proper display size) solves the issue, because the 'delayMicroseconds()' function will work.
Alessandro, Italy
from liquidcrystal.
Update. Crash only occurs when I initialize LCD on global scope.
"LiquidCrystal lcd(7, 6, 5, 4, 3, 8);" keeping this statement inside a function somehow resolves this issue. but i need lcd variable accessible in both setup and loop function...
from liquidcrystal.
The problem with the constructor was previously reported at #11
#11 is odd in that it was originally a pull request arduino/Arduino#87, but was somehow converted to an issue during the transfer of the library from its original home bundled with the Arduino IDE repository to this dedicated repository. The proposed changes are in this branch:
https://github.com/arduino-libraries/LiquidCrystal/tree/pr_87
with the constructor fix in this commit:
arduino/Arduino@f82ec65
from liquidcrystal.
Related Issues (20)
- Arduino reference code CreateChar problem
- Print.h not included in newer platforms HOT 1
- createChar from PROGMEM
- Where is `lcd.print` defined? HOT 1
- Library doesn't work with Arduino Nano Every HOT 1
- Startup delay wrong for 8bit AVR core ...
- Add GitHub Action based CI
- Display corrupts when a string containing "Mod" is printed HOT 8
- LCD println does not go to a new line HOT 4
- Improvements to the LiquidCrystal library [imported] HOT 8
- LiquidCrystal_I2C lcd(0x27, 16, 2); Causes problem on NodeMCU HOT 2
- Boolean type is deprecated in some arduino core, have to be replace by bool HOT 1
- Add GitHub Actions workflow to synchronise with shared repository labels
- print wrong charcters HOT 2
- How can add delay instead of delay function HOT 1
- Add line wrap
- Update redirecting link in HelloWorld example HOT 4
- Entry mode flags are confusing
- init() needlessly calls begin() HOT 1
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 liquidcrystal.