-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to print in LCD - GPIO #25
Comments
In order to help, I'd need to be able to see your code, see the output you get from running the code and you'd need to share how you wired up the LCD. |
Hello , If i use Arduino it works with the following code : #include <LiquidCrystal.h> //LiquidCrystal lcd(RS, EN, d4, d5, d6, d7); LiquidCrystal lcd(4, 0, 14, 12, 13, 15); #define DHTPIN 5 DHT dht(DHTPIN , DHTTYPE); int timeSinceLastRead = 0; void setup() { void loop() {
} I want to do the same but with python Can you share with me an example ? |
The code is known to work. The most likely problem is mis-wiring or the code and the wiring not agreeing with each other. Unfortunately, I don't have any NodeMcu's. Here's a recent example where I connected up to a NUCLE_F401RE: #24 |
I'm not a 100% sure, but it may also be that the Pin numbers being used by Arduino aren't the same as the pin numbers being used by MicroPython. |
I bought a NodeMCU v3 and it seems to be working. I wired it up as follows: LCD pin1 - NodeMCU Ground I initially tried connecting LCD pin 14 to NodeMCU pin D8, put for some reason my REPL stopped working when I did that, so I used D4 instead. I edited nodemcu_gpio_lcd_test.py to use the pins numbers I mentioned above:
I copied nodemcu_gpio_lcd_test.py, nodemcu_gpio_lcd.py, and lcd_api.py to the esp8266 filesystem, and ran the following:
|
On Wed, Jul 3, 2019 at 10:06 PM JesusTJ ***@***.***> wrote:
Something is wrong , is not working , only black squares
Make sure the contrast is *exactly right*. Some screens don't show the
chars unless this is tuned perfectly.
|
If you can see the black squares then you should be able to see the text (as far as contrast goes). That tells me that something is wrong with the wiring. Maybe one of the wires has a broken contact, or the wiring doesn't agree with what's being initialized. I assume that you're running test_main() after doing the import (the import by itself won't change the display) |
Hello , i am trying to learn micropython and I got the board NEW NodeMcu Lua ESP8266 CH340G ESP-12E Wireless WIFI Internet Development Board from ebay.
I already completed some practices and now i'm trying to display information in LCD 1602A with GPIO pins but can not. only black squares.
i loaded esp8266-20190529-v1.11 With NodeMCU-PyFlasher-4.0-x64
blob:https://web.whatsapp.com/883eb399-9f53-4f52-8023-40e25437819a
Can i get some help ?
The text was updated successfully, but these errors were encountered: