Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: RaspDAC OLED & Power management w/Moode 6.7.1
#12
Hi Juan JB,

The only interest of not using the following overlay for GPIO pin 22 (but keeping one for GPIO pin 17 to handle the power button)

Code:
dtoverlay=gpio-poweroff,gpiopin=22,active_low


and keep part of sds.sh :


Code:
#!/bin/bash
# Moode for Audiophonics SPC II power management board
# Initialisation of GPIO outputs 4 (SofthutDown) and 22 (BootOK)
# Script is lauched by /etc/rc.local after moode is ready
# Power LED stops slowly blinking an lights steadily
# modded by Ph Deysine - 14/11/2020

PATH=/usr/bin:/usr/local/bin

echo "Audiophonics initialisation script starting..."
echo "Asserting pins : "
echo "SoftShutDown  : GPIO04=out, Low"
echo "BootOK        : GPIO22=out, High"

echo "Setting SoftShutDown output Low"
gpio -g mode 04 out
gpio -g write 04 0

echo "Setting BootOK output High"
gpio -g mode 22 out
gpio -g write 22 1

exit 0

is to have BootOK active (= power led to stop blinking) when Moode is ready and not just when boot is finished. 

Thank you for your Python version I will use when moving forward to Moode 7(.1 !) since WiringPi is deprecated (I still run Moode 6.7.1 on a Pi 3B+)

Regards.

Philippe
Reply


Messages In This Thread
RE: RaspDAC OLED & Power management w/Moode 6.7.1 - by chano22000 - 01-05-2021, 10:57 AM

Forum Jump: