User Manual
2/12/2018 PiJuice/Software at master · PiSupply/PiJuice · GitHub
https://github.com/PiSupply/PiJuice/tree/master/Software 11/18
This Tab provides configuration of two pins IO port provided from HAC microcontroller at P3 Header. Modes selection box
provides to program IO pin to one of predefined modes:
NOT_USED: Set IO pin in neutral configuration (passive input).
ANALOG_IN: Set IO pin in analog to digital converter mode. In this mode Value can be read with status function
GetIoAnalogInput(). Pull has no effect in this mode.
DIGITAL_IN: Set IO pin in digital input mode. Pull in this mode cen be set to NO_PULL, PULLDOWN or PULLUP. Use
status function SetIoDigitalOutput() to read input value dynamically.
DIGITAL_OUT_PUSHPULL: Set IO pin in digital output mode with push-pull driver topology. Pull in this mode should be
set to NO_PULL. Initial value can be set to 0 or 1. Use status function SetIoDigitalOutput() to control output value
dynamically.
DIGITAL_IO_OPEN_DRAIN: Set IO pin in digital output mode with open-drain driver topology. Pull in this mode can be
set to NO_PULL, PULLDOWN or PULLUP. Initial value can be set to 0 or 1. Use status function SetIoDigitalOutput() to
control output value dynamically.
PWM_OUT_PUSHPULL: Set IO pin to PWM output mode with push-pull driver topology. Pull in this mode should be set
to NO_PULL. Period [us] box sets period in microseconds in range [2, 131072] with 2us resolution. Set initial duty_circle
in range [0, 100]. Use status function SetIoPWM() to control duty circle dynamically.
PWM_OUT_OPEN_DRAIN: Set IO pin to PWM output mode with open-drain driver topology. Pull in this mode can be
set to NO_PULL, PULLDOWN or PULLUP. Period [us] box sets period in microseconds in range [2, 131072] with 2us
resolution. Set initial duty_circle in range [0, 100]. Use status function SetIoPWM() to control duty circle dynamically.
Click Apply button to save new settings.
PiJuice HAT Config Firmware Menu