Git Product home page Git Product logo

Comments (12)

ladyada avatar ladyada commented on July 22, 2024

is the example not working?

from adafruit_circuitpython_as7341.

caternuson avatar caternuson commented on July 22, 2024

hmmm. trinket m0 thing?

Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Trinket M0 with samd21e18
>>> from collections import namedtuple
>>> _SmuxOut = namedtuple("_SmuxOut", "DISABLED ADC0 ADC1 ADC2 ADC3 ADC4 ADC5")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object 'str' is not a tuple or list
>>> 
Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit ItsyBitsy M4 Express with samd51g19
>>> from collections import namedtuple
>>> _SmuxOut = namedtuple("_SmuxOut", "DISABLED ADC0 ADC1 ADC2 ADC3 ADC4 ADC5")
>>>  

from adafruit_circuitpython_as7341.

caternuson avatar caternuson commented on July 22, 2024

I patched this real quick to test, but ran into new issue:

Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Trinket M0 with samd21e18
>>> import as7341_simpletest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "as7341_simpletest.py", line 6, in <module>
  File "adafruit_as7341.py", line 199, in <module>
  File "adafruit_as7341.py", line 229, in AS7341
MemoryError: memory allocation failed, allocating 184 byte
>>> 

This library's use of register may make it not work for small boards like Trinket M0.

from adafruit_circuitpython_as7341.

monroepattillo avatar monroepattillo commented on July 22, 2024

from adafruit_circuitpython_as7341.

monroepattillo avatar monroepattillo commented on July 22, 2024

from adafruit_circuitpython_as7341.

caternuson avatar caternuson commented on July 22, 2024

OK. Sounds like we could close this then? Seems like boards big enough to use this library can also parse that string syntax.

from adafruit_circuitpython_as7341.

ladyada avatar ladyada commented on July 22, 2024

it would work great with our arduino library, please try that!

from adafruit_circuitpython_as7341.

monroepattillo avatar monroepattillo commented on July 22, 2024

from adafruit_circuitpython_as7341.

monroepattillo avatar monroepattillo commented on July 22, 2024

from adafruit_circuitpython_as7341.

ladyada avatar ladyada commented on July 22, 2024

ok closing. i think a bigger/more capable board would work with circuitpython. like a STM32, nRF, ESP32S2 or M4 - even the new pico would be good! m0 is very very minimal :)

from adafruit_circuitpython_as7341.

ladyada avatar ladyada commented on July 22, 2024

@caternuson or @dherrada can ya add a note to the readme that m0 wont work?

from adafruit_circuitpython_as7341.

monroepattillo avatar monroepattillo commented on July 22, 2024

from adafruit_circuitpython_as7341.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.