Comments (2)
Looking at the schematics, {PC14 and PC15 are connected to the 32 kHz oscillator which is probably the main problem.
I connected it up by grounding the contrast pin (a quick hack - using the potentiometer is better) and connecting RS and EN to PC6 and PC8 instead.
I put some photos here: https://photos.app.goo.gl/81BKYmFBVqahvCnr7
I modified pyb_gpio_lcd_test.py and called it lcd_401.py and put lcd_401.py, lcd_api.py and pyb_gpio_lcd.py in the ports/stm32/modules directory (so they'd be built as frozen modules).
I changed lcd_401.py so that the call to GpioLcd looked like this:
lcd = GpioLcd(rs_pin=Pin.cpu.C6,
enable_pin=Pin.cpu.C8,
d4_pin=Pin.cpu.C2,
d5_pin=Pin.cpu.C3,
d6_pin=Pin.cpu.C4,
d7_pin=Pin.cpu.C5,
num_lines=2, num_columns=16)
I changed the pin assignments and the num_lines and num_columns.
Here's what I ran from the REPL on the NUCLEO_F401RE to get the test to work.
MicroPython v1.11-37-g62f004ba4 on 2019-06-06; NUCLEO-F401RE with STM32F401xE
Type "help()" for more information.
>>> import lcd_401
>>> lcd_401.test_main()
Running test_main
from python_lcd.
Dave, you are always complementing!!
Thanks again for the wonderful reply there!! Have got it working. Didn't notice that those pins were connected to oscillator.
Thank you so much for your time and effort in setting up and posting those pictures.
from python_lcd.
Related Issues (20)
- Don't work in esp32 HOT 2
- BBB install error HOT 1
- LCD hangs at initialization
- Putting this code on my Nodemcu V3 HOT 2
- Need driver for chip SPLC780D1 HOT 3
- print backslash to LCD HOT 1
- Unable to print in LCD - GPIO HOT 8
- 16x4 LCD have 3rd and 4th line shifted by 4 chars HOT 4
- One linefeed too many, in case the line is filled up to the last character (4x20 display) / CircuitPython Port HOT 2
- rp2 PIO variant HOT 1
- add seeed studio Grove - 16x2 LCD support - any chance? HOT 4
- How to add extra commands? HOT 2
- PyCom WiPy 3 with 20x4 LCD HOT 1
- Broken CPython support HOT 4
- ESP32 library for displays 1602, 2004 (I2C interface) with Russian letters (Cyrillic) HOT 1
- putchar() canβt display custom chars HOT 1
- Could you please add a new class to i2c_lcd.py? HOT 2
- Reduce code size and memory footprint HOT 6
- Python_LCD 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 python_lcd.