Giter Club home page Giter Club logo

Comments (3)

rin67630 avatar rin67630 commented on July 22, 2024

+1, Backing up this request.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

I have opted to change the class constructor to add a parameter there which will let the library determine whether to use dynamically allocated memory or EEPROM to store INA structure information. While each INA structure element is only 20 bytes, this can add up quickly when several INA devices are implemented - particularly when working with an UNO rather than the newer and bigger microprocessing systems.
If the class is instantiated using a numeric parameter greater than 0, the library will allocate memory and not use EEPROM. So, a definition of "INA_Class INA(5);" will disable EEPROM use and reserve a 5-element array internally (currently 100 bytes). Since this is done during class instantiation no error checking is done. If more memory is reserved than is available on the heap with a "new" call then no error is returned, but the program will abort when accessing a device. Similarly, if there are 7 devices available then the program will also abort when attempting to access the 6th device with the initializer given above.

from ina.

SV-Zanshin avatar SV-Zanshin commented on July 22, 2024

Created Version 1.0.15 for this fix and updated documentation

from ina.

Related Issues (20)

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.