Issues in Display data on LCD

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
nikhiledutech
Posts: 118
Joined: Wed Dec 27, 2017 8:52 am

Issues in Display data on LCD

Post by nikhiledutech » Sat Mar 31, 2018 9:23 am

Hello,

I am unable to display data on LCD. Below is my code. Can anyone help me out.
import uasyncio as asyncio
import utime as time
from alcd import LCD, PINLIST

lcd = LCD(PINLIST, cols = 16)

async def lcd_task():
for secs in range(20, -1, -1):
lcd[0] = 'Edutech Learning'
lcd[1] = "Solution"
await asyncio.sleep(1)


loop = asyncio.get_event_loop()
loop.run_until_complete(lcd_task())

Can anyone help me out ?

cefn
Posts: 230
Joined: Tue Aug 09, 2016 10:58 am

Re: Issues in Display data on LCD

Post by cefn » Sun Apr 01, 2018 6:51 pm

You don't call runlcd

From https://github.com/peterhinch/micropyth ... 80/alcd.py

Code: Select all

async def runlcd(self):                     # Periodically check for changed text and update LCD if so

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Issues in Display data on LCD

Post by pythoncoder » Mon Apr 02, 2018 6:17 am

@cefn This is called by the constructor, there's no need to call it explicitly.

@nikhiledutech As far as I can see that code should run. Does the test program alcdtest.py run? If not I'd suspect a hardware problem.
Peter Hinch
Index to my micropython libraries.

nikhiledutech
Posts: 118
Joined: Wed Dec 27, 2017 8:52 am

Re: Issues in Display data on LCD

Post by nikhiledutech » Mon Apr 02, 2018 8:52 am

it was running in past. But i tried it now and its not working. So definitely it should be a hardware problem ?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Issues in Display data on LCD

Post by pythoncoder » Mon Apr 02, 2018 1:28 pm

I've verified that lcdtest.py runs with firmware built today, with the current version of uasyncio, so I can only suggest checking hardware.
Peter Hinch
Index to my micropython libraries.

Post Reply