DexterInd / DexterInd/GrovePi

LCD RGB screen not working

Open
#435 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
494
Forks
472
PR merge metrics
No merged PRs in 30d

Description

Hello, here is my problem : i call

def alertHuman(self,msg):
        setText_norefresh("Light : " + str(msg))

in a while loop and after like 10 iterations it crashes and i have this error message :

File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
    self.run()
  File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "component1.py", line 55, in runHuis
    LCD.alertHuman(value)
  File "/home/pi/grovePiDataSender/IoT-DataSender/Entities/HumanUserInterfaces/GroveHUIs/GroveLCD.py", line 12, in alertHuman
    setText_norefresh("Light : " + str(msg))
  File "/home/pi/grovePiDataSender/IoT-DataSender/Entities/HumanUserInterfaces/GroveHUIs/grove_rgb_lcd.py", line 77, in setText_norefresh
    textCommand(0x02) # return home
  File "/home/pi/grovePiDataSender/IoT-DataSender/Entities/HumanUserInterfaces/GroveHUIs/grove_rgb_lcd.py", line 52, in textCommand
    bus.write_byte_data(DISPLAY_TEXT_ADDR,0x80,cmd)
  File "/usr/local/lib/python3.5/dist-packages/smbus_cffi-0.5.1-py3.5-linux-armv7l.egg/smbus/util.py", line 59, in validator
    return fn(*args, **kwdefaults)
  File "/usr/local/lib/python3.5/dist-packages/smbus_cffi-0.5.1-py3.5-linux-armv7l.egg/smbus/smbus.py", line 145, in write_byte_data
    raise IOError(ffi.errno)

What's happening here because i have not a single clue

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Entities/HumanUserInterfaces/GroveHUIs/GroveLCD.py and grove_rgb_lcd.py, especially setText_norefresh and textCommand, then review the multiprocessing call shown in component1.py. Reproduce repeated LCD updates in the while loop and identify the cause of the IOError; done means the display can be updated repeatedly without the process crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.