Skip to content
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

Will it work for STM32F407 discovery board #3

Open
nikhil1983 opened this issue Dec 29, 2017 · 2 comments
Open

Will it work for STM32F407 discovery board #3

nikhil1983 opened this issue Dec 29, 2017 · 2 comments

Comments

@nikhil1983
Copy link

hello,
Can i use this code for STM32F407 discovery board as you have written it for Pi. And if yes, what are the settings i need to change in lcd.py file.

Thank you

@wjdp
Copy link
Owner

wjdp commented Dec 29, 2017

If it's just a matter of using different pins you could try changing the PINS variable, for example you could subclass and override like so:

class MyHD44780(HD44780):
    PINS = ['Y1','Y2','Y3','Y4','Y5','Y6'] # < Set these to the PINS on your board

Then just use the MyHD44780 class instead.

If you could post back here with your findings on the STM32F407 that'd be fantastic.

@nikhil1983
Copy link
Author

nikhil1983 commented Jan 3, 2018

Hello,
I tried by changing the pins, but it didnt worked out as expected. So i used asyncio library for asynchrous communication with LCD. Now its working.

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants