Skip to content

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 52 commits into from
Mar 21, 2025
Merged

Feature/sdk v11.0.0 #4

merged 52 commits into from
Mar 21, 2025

Conversation

lewispg228
Copy link
Member

No description provided.

gigapod and others added 30 commits October 3, 2024 14:25
-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
gigapod and others added 22 commits February 7, 2025 13:40
…od/change method name; move callbacks to static methods - cleaner for c++; remove all print statments and simplify return logic from methods
Moving current development work/refactor to a develop branch
mods made to support name pattern changes in toolkit; cleanup and com…
…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.
@lewispg228 lewispg228 merged commit 9eb8a04 into main Mar 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants