micropython-lcd icon indicating copy to clipboard operation
micropython-lcd copied to clipboard

Will it work for STM32F407 discovery board

Open nikhil1983 opened this issue 8 years ago • 2 comments

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

nikhil1983 avatar Dec 29 '17 06:12 nikhil1983

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.

wjdp avatar Dec 29 '17 16:12 wjdp

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 :)

nikhil1983 avatar Jan 03 '18 04:01 nikhil1983