User Manual
2/12/2018 PiJuice/Software at master · PiSupply/PiJuice · GitHub
https://github.com/PiSupply/PiJuice/tree/master/Software 14/18
SYS_FUNC_HALT
SYS_FUNC_HALT_POW_OFF
SYS_FUNC_HALT_POW_OFF
SYS_FUNC_REBOOT
USER_EVENT
USER_FUNC1 .. USER_FUNC15
button_power_off, forced_power_off, forced_sys_power_off, watchdog_reset
enabled: true, false
function:
NO_FUNC
USER_EVENT
USER_FUNC1 .. USER_FUNC15
system_task:
enabled: true, false
watchdog
enabled: true, false
period (minutes): 1..65535
min_bat_voltage
enabled: true, false
threshold (%): 0..100
min_charge
enabled: true, false
threshold (%): 0..100
wakeup_on_charge
enabled: true, false
trigger_level (Volts): 0..10
user_functions:
absolute path to user defined script
Adding USER_FUNC from 9 to 15
The user functions section of the JSON file looks like the following. To add USER_FUNC from 9 to 15 simply append them to
the existing ones.
"user_functions": {
"USER_FUNC1": "",
"USER_FUNC2": "",
"USER_FUNC3": "",
"USER_FUNC4": "",
"USER_FUNC5": "",
"USER_FUNC6": "",
"USER_FUNC7": "",
"USER_FUNC8": "",
"USER_FUNC9": "",
...
"USER_FUNC15": ""
},
I2C Command API
PiJuice HAT provides control, status and configuration of supported features through I2C Command API. Read/write
commands are based on I2C block read/write transfers where messages carrying data are exchanged with Master. Message