Skip to content

Commit

Permalink
Merge pull request home-assistant#2 from adeepn/jethome_5.7
Browse files Browse the repository at this point in the history
Jethome 5.7
  • Loading branch information
adeepn authored Jan 12, 2021
2 parents da83543 + 546d53e commit 947c6c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Home Assistant Operating System uses Docker as Container engine. It by default d
- Hardkernel ODROID
- Intel NUC
- Asus Tinker Board
- JetHome JetHub D1
- Virtual appliances

See the full list and specific models [here](./Documentation/boards/README.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ configure_gpio() {
echo "${0}: Configure GPIOs ..."

# Discrete inputs
configure_gpio "472 ${GPIO_DIRECTION_INPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "471 ${GPIO_DIRECTION_INPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "470 ${GPIO_DIRECTION_INPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "469 ${GPIO_DIRECTION_INPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "472" "${GPIO_DIRECTION_INPUT}" "${GPIO_ACTIVE_HIGH}"
configure_gpio "471" "${GPIO_DIRECTION_INPUT}" "${GPIO_ACTIVE_HIGH}"
configure_gpio "470" "${GPIO_DIRECTION_INPUT}" "${GPIO_ACTIVE_HIGH}"
configure_gpio "469" "${GPIO_DIRECTION_INPUT}" "${GPIO_ACTIVE_HIGH}"
# Relays
configure_gpio "456 ${GPIO_DIRECTION_OUTPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "455 ${GPIO_DIRECTION_OUTPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "454 ${GPIO_DIRECTION_OUTPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "456" "${GPIO_DIRECTION_OUTPUT}" "${GPIO_ACTIVE_HIGH}"
configure_gpio "455" "${GPIO_DIRECTION_OUTPUT}" "${GPIO_ACTIVE_HIGH}"
configure_gpio "454" "${GPIO_DIRECTION_OUTPUT}" "${GPIO_ACTIVE_HIGH}"
# ZigBee module
configure_gpio "467 ${GPIO_DIRECTION_OUTPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "462 ${GPIO_DIRECTION_OUTPUT} ${GPIO_ACTIVE_HIGH}"
configure_gpio "467" "${GPIO_DIRECTION_OUTPUT}" "${GPIO_ACTIVE_HIGH}"
configure_gpio "462" "${GPIO_DIRECTION_OUTPUT}" "${GPIO_ACTIVE_HIGH}"
# LEDs
configure_gpio "452 ${GPIO_DIRECTION_OUTPUT} ${GPIO_ACTIVE_LOW}"
configure_gpio "453 ${GPIO_DIRECTION_OUTPUT} ${GPIO_ACTIVE_LOW}"
configure_gpio "452" "${GPIO_DIRECTION_OUTPUT}" "${GPIO_ACTIVE_LOW}"
configure_gpio "453" "${GPIO_DIRECTION_OUTPUT}" "${GPIO_ACTIVE_LOW}"
# Button
configure_gpio "436 ${GPIO_DIRECTION_INPUT} ${GPIO_ACTIVE_LOW}"
configure_gpio "436" "${GPIO_DIRECTION_INPUT}" "${GPIO_ACTIVE_LOW}"


echo "${0}: Turn off LEDs ..."
Expand Down

0 comments on commit 947c6c5

Please sign in to comment.