forked from MiczFlor/RPi-Jukebox-RFID
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'future3/develop' into future3/merge-hotfix-3.5.2
- Loading branch information
Showing
9 changed files
with
128 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,7 +134,7 @@ jobs: | |
BASE_TEST_IMAGE=${{ steps.vars.outputs.image_tag_name_local_base }} | ||
- name: Artifact Upload Docker Image | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ steps.vars.outputs.image_file_name }} | ||
path: ${{ steps.vars.outputs.image_file_path }} | ||
|
@@ -159,7 +159,7 @@ jobs: | |
uses: docker/[email protected] | ||
|
||
- name: Artifact Download Docker Image | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ needs.build.outputs.image_file_name }} | ||
|
||
|
@@ -177,15 +177,15 @@ jobs: | |
args: | | ||
./${{ matrix.test_script }} | ||
# cleanup after test execution | ||
cleanup: | ||
# run only if tests didn't fail: keep the artifact to make job reruns possible | ||
if: ${{ !failure() }} | ||
needs: [build, test] | ||
runs-on: ${{ inputs.runs_on }} | ||
|
||
steps: | ||
- name: Artifact Delete Docker Image | ||
uses: geekyeggo/delete-artifact@v2 | ||
with: | ||
name: ${{ needs.build.outputs.image_file_name }} | ||
## cleanup after test execution | ||
#cleanup: | ||
# # run only if tests didn't fail: keep the artifact to make job reruns possible | ||
# if: ${{ !failure() }} | ||
# needs: [build, test] | ||
# runs-on: ${{ inputs.runs_on }} | ||
# | ||
# steps: | ||
# - name: Artifact Delete Docker Image | ||
# uses: geekyeggo/delete-artifact@v4 | ||
# with: | ||
# name: ${{ needs.build.outputs.image_file_name }} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Battery Monitor based on a ADS1015 | ||
|
||
> [!CAUTION] | ||
> Lithium and other batteries are dangerous and must be treated with care. | ||
> Rechargeable Lithium Ion batteries are potentially hazardous and can | ||
> present a serious **FIRE HAZARD** if damaged, defective or improperly used. | ||
> Do not use this circuit to a lithium ion battery without expertise and | ||
> training in handling and use of batteries of this type. | ||
> Use appropriate test equipment and safety protocols during development. | ||
> There is no warranty, this may not work as expected or at all! | ||
The script in [src/jukebox/components/battery_monitor/batt_mon_i2c_ads1015/\_\_init\_\_.py](../../../../src/jukebox/components/battery_monitor/batt_mon_i2c_ads1015/__init__.py) is intended to read out the voltage of a single Cell LiIon Battery using a [CY-ADS1015 Board](https://www.adafruit.com/product/1083): | ||
|
||
```text | ||
3.3V | ||
+ | ||
| | ||
.----o----. | ||
___ | | SDA | ||
.--------|___|---o----o---------o AIN0 o------ | ||
| 2MΩ | | | | SCL | ||
| .-. | | ADS1015 o------ | ||
--- | | --- | | | ||
Battery - 1.5MΩ| | ---100nF '----o----' | ||
2.9V-4.2V| '-' | | | ||
| | | | | ||
=== === === === | ||
``` | ||
|
||
> [!WARNING] | ||
> | ||
> * the circuit is constantly draining the battery! (leak current up to: 2.1µA) | ||
> * the time between sample needs to be a minimum 1sec with this high impedance voltage divider don't use the continuous conversion method! |
This file contains 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
This file contains 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
This file contains 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
55 changes: 0 additions & 55 deletions
55
src/jukebox/components/controls/bluetooth_audio_buttons/README.rst
This file was deleted.
Oops, something went wrong.
This file contains 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