Coder Social home page Coder Social logo

Comments (2)

dhylands avatar dhylands commented on September 9, 2024

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.

 avatar commented on September 9, 2024

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)

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.