Comments (3)
This is definitely an issue with the limitations of the M0/SAMD21 boards. I ran into this using an M0 Express, so I tried it with an SAMD51 board (Grand Central M4) and things worked great. The memory available to the M0 is just not large to import the underlying mcp230xx driver. You can see this in the REPL with:
>>> from adafruit_mcp230xx.mcp23008 import MCP23008
MemoryError: memory allocation failed, allocating 640 bytes
>>>
Importing that module is the first thing the I2C implementation does. The same is true when using SPI and the 74hc595 driver.
The answer is to use an M4 or another, more capable board to drive this backpack.
from adafruit_circuitpython_charlcd.
I just experienced the same issue:
CircuitPython 7.1.0 Beta 0; Seeeduino Xiao with SAMD21G18 microcontroller.
Using a 16x2 monochrome LCD with integrated PCF8574T I2C connection.
from adafruit_circuitpython_charlcd.
CircuitPython 7.1.1 ; Seeeduino Xiao with SAMD21G18 microcontroller.
Also experiencing this issue.
Following along with adafruit tutorials
import time
import board
import adafruit_character_lcd.character_lcd_i2c as character_lcd
i2c = board.I2C() # uses board.SCL and board.SDA
lcd = character_lcd.Character_LCD_I2C(i2c, 16, 2)
lcd.blink = True
lcd.message = "Blinky cursor!"
time.sleep(5)
lcd.blink = False
yields:
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 3, in <module>
File "adafruit_character_lcd/character_lcd_i2c.py", line 31, in <module>
File "adafruit_mcp230xx/mcp23008.py", line 16, in <module>
File "adafruit_mcp230xx/mcp230xx.py", line 16, in <module>
File "adafruit_mcp230xx/mcp23xxx.py", line 14, in <module>
File "adafruit_bus_device/i2c_device.py", line 14, in <module>
RuntimeError: maximum recursion depth exceeded
from adafruit_circuitpython_charlcd.
Related Issues (20)
- Unresolved import HOT 4
- Backlight not turn on HOT 4
- MemoryError on Metro M0 Express HOT 12
- Need to allow alternate I2C addresses HOT 1
- No module named 'adafruit_mcp230xx' HOT 1
- RemoteDisconnect Issue HOT 8
- When using digitalio for RGB control on RPi, list values must be more than 1 to actually turn on corresponding LED HOT 4
- Error in docs HOT 2
- Message draw slow compared to legacy library (Adafruit_CharLCDPlate) HOT 11
- LCD with i2c backpack blinks but no text HOT 4
- Sending Digit 2 Turns Backlight Off HOT 1
- Rasberry pico HOT 1
- Row Offsets for 16x4 display.
- Could not display degree sign properly HOT 1
- Missing Type Annotations HOT 1
- Can I used it with Nvidia Jetson Xavier NX HOT 1
- Library uses short argument names
- Name Mismatch in Circup
- ValueError: incompatible .mpy file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_circuitpython_charlcd.