Skip to content
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

Code Cleanup #1

Open
Poofjunior opened this issue Sep 13, 2024 · 0 comments
Open

Code Cleanup #1

Poofjunior opened this issue Sep 13, 2024 · 0 comments

Comments

@Poofjunior
Copy link
Collaborator

Let's submodule the Adafruit library and implement the missing function calls. Doing so should elminate any copy-paste from external repos and keep up with any bugfixes on their end.

To get there, we need to:

Implement a blank Adafruit_I2CDevice

This is included as #include <Adafruit_I2CDevice.h>, and we'll need to stub out the read and write functions.

Implement Adafruit_SPIDevice and read/write functions

class Adafruit_SPIDevice
{
    // constructor
    Adafruit_SPIDevice(cspin, 1000000, SPI_BITORDER_MSBFIRST,
                                   SPI_MODE0, theSPI)
}

Implement Arduino.h

This should be another submodule from AIND. Ask @Poofjunior for the location of this.

File Organization

Let's submodule https://github.com/adafruit/Adafruit_BME680/tree/master into the lib folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant