-
Notifications
You must be signed in to change notification settings - Fork 50
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
MemoryError on Metro M0 Express #36
Comments
try 4.x - if that is still not fitting then yeah this library could be slimmed down, i see a lot of inefficiencies. let me know if you want to take that on |
similar with 4.x: Adafruit CircuitPython 4.0.0-beta.5 on 2019-03-17; Adafruit Metro M0 Express with samd21g18
>>> import board, busio
>>> import adafruit_character_lcd.character_lcd_i2c as character_lcd
>>> i2c = busio.I2C(board.SCL, board.SDA)
>>> lcd = character_lcd.Character_LCD_I2C(i2c, 20, 4)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "adafruit_character_lcd/character_lcd_i2c.py", line 74, in __init__
File "adafruit_mcp230xx.py", line 31, in <module>
MemoryError:
>>> @kattni - you up for this? |
i think @kattni's pretty booked, this might be better for you to take on |
I have a different library that has similar functionality, where the interface is factored out of the user API: https://github.com/dhalbert/CircuitPython_LCD. It was written before this one; they come from different source bases. The current library takes the parallel interface as the base and then adapts other interfaces to that. The |
@dhalbert Question about your library - how would it support usage of bare displays which would require the parallel interface? For example: |
Tested on Metro M0. Memory fails with the RGB LCD I2C shield and the I2C RGB simpletest.
Works properly on Metro M4. |
Ugh...confusing results... Finally getting back to this. Had to order up the RGB shield kit HW. I've now got the following: Using CP 4.0.1 with bundle release from 20190620 and running this example: Adafruit CircuitPython 4.0.1 on 2019-05-22; Adafruit Metro M0 Express with samd21g18
>>>
soft reboot
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output: |
@caternuson I don't have the hardware here to test this here, but can you test it on 5.x? If you don't experience the issue, we'll close it. |
@kattni :( Adafruit CircuitPython 5.3.0 on 2020-04-29; Adafruit Metro M0 Express with samd21g18
>>>
soft reboot
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 5, in <module>
File "adafruit_character_lcd/character_lcd_rgb_i2c.py", line 58, in <module>
MemoryError:
Press any key to enter the REPL. Use CTRL-D to reload. |
@caternuson Bummer. Alright. You were looking into this last, and couldn't replicate it. It appears that you are now able to. It seems the last thing was you needing more information from Dan. Is that accurate? Is this still something you're willing/able to look into? |
@kattni I self assigned and will take a look. |
Any progress on this? I ran into the problem with a Feather M0 Express with libraries from
Workarounds for using an LCD with I2C backpack? |
Re:
https://forums.adafruit.com/viewtopic.php?f=63&t=149682
Can recreate with following:
But seems to work on M4:
The text was updated successfully, but these errors were encountered: