Coder Social home page Coder Social logo

Comments (2)

caternuson avatar caternuson commented on August 29, 2024

Was able to recreate this. The issue is the hardwired value of 0x3F for SEESAW_EEPROM_I2C_ADDR here:

#define SEESAW_EEPROM_I2C_ADDR \
0x3F ///< EEPROM address of i2c address to start up with (for devices that
///< support this feature)

That's the correct location for SAMD based seesaw firmware:
https://github.com/adafruit/seesaw/blob/af364d5bcd24330fbb00d9c34e6b27f090af7ab3/include/RegisterMap.h#L215

However, for ATtiny based seesaw firmware, the location is the end of EEPROM, which is determined dynamically:
https://github.com/adafruit/Adafruit_seesawPeripheral/blob/12dd2e85d294eee182922d6cc544f17bb30ef19a/Adafruit_seesawPeripheral.h#L26
The EEPROM address location ends up being 0x7F on ATtiny816 used on GamePad. (ATtiny16xx's would be 0xFF)

So this library is reading/writing to the incorrect EEPROM location for any ATtiny based seesaw product.

from adafruit_seesaw.

pongsagon avatar pongsagon commented on August 29, 2024

Thanks I can change the I2C address now.

Adafruit_seesaw ss;
...
uint8_t newAddress = 0x49;
ss.EEPROMWrite8(0x7F, newAddress);
delay(250);
ss.begin(newAddress); // now return true and can read the input

from adafruit_seesaw.

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.