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

bh1750_init variant for changing I2C address #1

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

danielskowronski
Copy link
Contributor

danielskowronski added a commit to danielskowronski/flipperzero-lightmeter that referenced this pull request Feb 20, 2023
single callback function that handles sensor mode and address setting

this requires oleksiikutuzov/flipperzero-BH1750#1 to be merged
@oleksiikutuzov oleksiikutuzov merged commit b68c8f3 into oleksiikutuzov:main Feb 20, 2023
oleksiikutuzov added a commit to oleksiikutuzov/flipperzero-lightmeter that referenced this pull request Jul 21, 2023
…lux_only mode (#39)

* add Measurement Resolution setting

* load settings on main_view enter, add peak lux stat

* very simple histogram

* add todo for later

* save/read settings to SD card

* fix config path and button rendering

* increase stack size

convert `flipper_format_*_hex` to `flipper_format_*_int32`

* proper `bh1750_set_mode` on app init

- move `bh1750_set_mode` after config is loaded
- replace hardcoded value with `app->config->measurement_resolution`

* add I2C addr selection, fix sensor init

single callback function that handles sensor mode and address setting

this requires oleksiikutuzov/flipperzero-BH1750#1 to be merged

* bump lib to origin

* inscreasing stack size to be safe

* Revert "Merge branch 'main' into advanced-mode"

This reverts commit 0c0d0b9, reversing
changes made to 7998c32.

* Fix conflicts

* More files to the state of the main branch

* Fix formatting

* Update changelog

* Write sensor type to config, set address for MAX sensor

* Switching address for both sensors

* Use shortcut for appdata folder, update changelog

* Update license to current state

* Update docs

* Update screenshots

---------

Co-authored-by: Oleksii Kutuzov <8535871+oleksiikutuzov@users.noreply.github.com>
Co-authored-by: Oleksii Kutuzov <oleksii.kutuzov@icloud.com>
Willy-JL pushed a commit to Flipper-XFW/Xtreme-Apps that referenced this pull request Oct 24, 2023
…lux_only mode (#39)

* add Measurement Resolution setting

* load settings on main_view enter, add peak lux stat

* very simple histogram

* add todo for later

* save/read settings to SD card

* fix config path and button rendering

* increase stack size

convert `flipper_format_*_hex` to `flipper_format_*_int32`

* proper `bh1750_set_mode` on app init

- move `bh1750_set_mode` after config is loaded
- replace hardcoded value with `app->config->measurement_resolution`

* add I2C addr selection, fix sensor init

single callback function that handles sensor mode and address setting

this requires oleksiikutuzov/flipperzero-BH1750#1 to be merged

* bump lib to origin

* inscreasing stack size to be safe

* Revert "Merge branch 'main' into advanced-mode"

This reverts commit 0c0d0b9655310dabb100512ad7bdf23073e9b9e7, reversing
changes made to 7998c32a6941aa1ead4f71d020575979cd139d36.

* Fix conflicts

* More files to the state of the main branch

* Fix formatting

* Update changelog

* Write sensor type to config, set address for MAX sensor

* Switching address for both sensors

* Use shortcut for appdata folder, update changelog

* Update license to current state

* Update docs

* Update screenshots

---------

Co-authored-by: Oleksii Kutuzov <8535871+oleksiikutuzov@users.noreply.github.com>
Co-authored-by: Oleksii Kutuzov <oleksii.kutuzov@icloud.com>
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