-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/sdk v11.0.0 #4
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-not causing reset, but stopping at/after open is called, and returning error 100
-Created separate classes for I2C and SPI -Updated Examples as needed -removed incorrect setup of spi_device_t struct.
-note, this is only working with toolkit branch 16-bit-data-support from 11/7 -utilized type() to find the bus type and communicate as needed whether it's I2C or SPI -moved pinMode calls for SPI pins into the example sketch setup() -made CS pin into a macro define at the top of the example sketch -SPI bus was not properly initializing because the call to init was missing the 4th argument set to true (bInit is default set to false)
-removed debug printing -increased SPI clock back up to 1MHz
-updated write callback to use writeRegister16Region16 (when I2C), so the payload swapping is happening in the toolkit -updating macro SFTK_MSBFIRST for recent toolkit update
-now that both bus types can call writeRegister16Region16, it can happen just once (after the type check if statement)
-read callback (when I2C) is not using readRegister16Region16. This allows it to be the same call for I2C and SPI -simplified my type check if statement to only include a single line of I2C specific code (the header shifting). -Note, this does require a slight change in the toolkit readRegister16Region16 to set nRead to WORDS not bytes.
-added in functionality to read PM 1 -added in functionality to get or set the measurement algorithm
-added a macro ifdef to check for ESP32 - to only set loop task stack size when needed. -added compiled binaries for m33f
-added a macro to check for the Thing Plus RP2040, which has it's qwiic connector on Wire1. Most other SparkFun Dev boards have their qwiic connector on Wire. -removed unnecessary duplicate directory on example 7
-this was throwing compile error because it was changing wirePort texts in the header file.
-utilizing the on-board MAX17048 Fuel Guage IC on the ESP32 Thing Plus C. -Printing battery state of charge (SOC) to terminal -drawing a battery level indicator on the bottom right of the OLED - with 3 blocks to show 33/66/100 % batt levels.
-obstruction is "written on top" of the other stuff, so you can still read the bad data and see it's alive -increased the static PM1 and PM2.5 text, so it's more legible.
…prop>() - more modern; Added is to DataAvailable(); formatted file; tweak some constants; added a method to get all parameter values via a passed in struct; STILL a work in progress - not tested or compiled
…od/change method name; move callbacks to static methods - cleaner for c++; remove all print statments and simplify return logic from methods
…evolving naming pattern
Moving current development work/refactor to a develop branch
mods made to support name pattern changes in toolkit; cleanup and com…
…is qwiic... SPI is a *special* case
…les (rp2350); esp32 and rp2040 (cortex-m0plus) compile - not tested
-Example SPI - IoT Redboard ESP32 uses pin number 5 for it's CS -Opening print statement correction for example 6 -added other pm sizes to example 5
-shows how to open the instance of the object, and then close it down entirely, and then repeat.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.