Skip to content

Commit

Permalink
Sensecap fan support (#851)
Browse files Browse the repository at this point in the history
* Sensecap fan support

Closes: NebraLtd/hm-pyhelper#116

* Update config.txt.sensecap

* Create config.txt.syncrobit

* Update update-files.yml
  • Loading branch information
shawaj authored Jul 22, 2023
1 parent 1d371b1 commit abea7ff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion balena/balena.yml.sensecap
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ data:
- VARIANT: COMP-SENSECAPM1
applicationConfigVariables:
- RESIN_HOST_CONFIG_dtparam: '"i2c_arm=on","spi=on","audio=on"'
- RESIN_HOST_CONFIG_dtoverlay: '"spi0-1cs"'
- RESIN_HOST_CONFIG_dtoverlay: '"spi0-1cs","gpio-fan,gpiopin=13,temp=70000"'
- RESIN_HOST_CONFIG_gpu_mem: 16
- RESIN_HOST_CONFIG_avoid_warnings: 1
- RESIN_HOST_CONFIG_disable_overscan: 1
Expand Down
1 change: 1 addition & 0 deletions balena/config/config.txt.sensecap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
core_freq=400
dtoverlay=spi0-1cs
dtoverlay=gpio-fan,gpiopin=13,temp=70000
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on
Expand Down
9 changes: 9 additions & 0 deletions balena/config/config.txt.syncrobit
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
core_freq=400
dtoverlay=spi0-1cs
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on
avoid_warnings=1
disable_overscan=1
disable_splash=1
gpu_mem=16
8 changes: 6 additions & 2 deletions balena/workflows/update-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ jobs:
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/production/balena/config/config.txt.nebra-raspi -O config.txt
elif [ $miner == 'controllino' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/production/balena/config/config.txt.controllino -O config.txt
elif [ $miner == 'sensecap' ] || [ $miner == 'cotx' ] || [ $miner == 'finestra' ] || [ $miner == 'linxdot' ] || [ $miner == 'midas' ] || [ $miner == 'pantherx1' ] || [ $miner == 'syncrobit' ] ; then
elif [ $miner == 'sensecap' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/production/balena/config/config.txt.sensecap -O config.txt
elif [ $miner == 'cotx' ] || [ $miner == 'finestra' ] || [ $miner == 'linxdot' ] || [ $miner == 'midas' ] || [ $miner == 'pantherx1' ] || [ $miner == 'syncrobit' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/production/balena/config/config.txt.syncrobit -O config.txt
elif [ $miner == 'risinghf' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/production/balena/config/config.txt.risinghf -O config.txt
elif [ $miner == 'nebra-indoor2' ] || [ $miner == 'nebra-outdoor2' ] || [ $miner == 'linxdot-rkcm3' ] || [ $miner == 'syncrobit-rkcm3' ] || [ $miner == 'bobcat-px30' ] ; then
Expand Down Expand Up @@ -97,8 +99,10 @@ jobs:
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/master/balena/config/config.txt.nebra-raspi -O config.txt
elif [ $miner == 'controllino' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/master/balena/config/config.txt.controllino -O config.txt
elif [ $miner == 'sensecap' ] || [ $miner == 'cotx' ] || [ $miner == 'finestra' ] || [ $miner == 'linxdot' ] || [ $miner == 'midas' ] || [ $miner == 'pantherx1' ] || [ $miner == 'syncrobit' ] ; then
elif [ $miner == 'sensecap' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/master/balena/config/config.txt.sensecap -O config.txt
elif [ $miner == 'cotx' ] || [ $miner == 'finestra' ] || [ $miner == 'linxdot' ] || [ $miner == 'midas' ] || [ $miner == 'pantherx1' ] || [ $miner == 'syncrobit' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/master/balena/config/config.txt.syncrobit -O config.txt
elif [ $miner == 'risinghf' ] ; then
wget https://raw.githubusercontent.com/NebraLtd/helium-miner-software/master/balena/config/config.txt.risinghf -O config.txt
elif [ $miner == 'nebra-indoor2' ] || [ $miner == 'nebra-outdoor2' ] || [ $miner == 'linxdot-rkcm3' ] || [ $miner == 'syncrobit-rkcm3' ] || [ $miner == 'bobcat-px30' ] ; then
Expand Down

0 comments on commit abea7ff

Please sign in to comment.