Skip to content

Commit

Permalink
move build_wiki.yml to main branch, rework comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzroe committed Jun 12, 2024
1 parent 4b49bbe commit 3b7a9b2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Wiki
on:
workflow_dispatch:
workflow_run:
workflows: ["Update devices in wiki"]
types:
- completed
push:
branches:
- mkdocs

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: pip install -r requirements.txt
- run: mkdocs gh-deploy --force
8 changes: 4 additions & 4 deletions src/const/hw.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include "const/hw.h"

// Ethernet configurations
// !!! Don't forget to edit ETH_CFG_CNT !!!
// Don't forget to edit ETH_CFG_CNT !!!
EthConfig ethConfigs[] = {
{.addr = 0, .pwrPin = 12, .mdcPin = 23, .mdiPin = 18, .phyType = ETH_PHY_LAN8720, .clkMode = ETH_CLOCK_GPIO17_OUT}, // .pwrAltPin = -1}, // 0 Olimex-ESP32-POE
{.addr = 1, .pwrPin = 16, .mdcPin = 23, .mdiPin = 18, .phyType = ETH_PHY_LAN8720, .clkMode = ETH_CLOCK_GPIO0_IN}, // .pwrAltPin = -1}, // 1 WT32-ETH01 / SLZB-06
{.addr = 0, .pwrPin = 5, .mdcPin = 23, .mdiPin = 18, .phyType = ETH_PHY_LAN8720, .clkMode = ETH_CLOCK_GPIO17_OUT}, // .pwrAltPin = -1}, // 2 T-Internet-POE / UZG-01 / HamGeek POE Plus
};

// ZigBee configurations
// !!! Don't forget to edit ZB_CFG_CNT !!!
// Don't forget to edit ZB_CFG_CNT !!!
ZbConfig zbConfigs[] = {
{.txPin = 4, .rxPin = 36, .rstPin = 16, .bslPin = 32}, // 0 UZG-01 / LilyZig / Olizig
{.txPin = 17, .rxPin = 5, .rstPin = 33, .bslPin = 32}, // 1 ZigStar LAN / SLZB-06 / TubesZB-eth
Expand All @@ -22,7 +22,7 @@ ZbConfig zbConfigs[] = {
};

// Mist configurations
// !!! Don't forget to edit MIST_CFG_CNT !!!
// Don't forget to edit MIST_CFG_CNT !!!
MistConfig mistConfigs[] = {
{.btnPin = -1, .btnPlr = 0, .uartSelPin = -1, .uartSelPlr = 0, .ledModePin = -1, .ledModePlr = 0, .ledPwrPin = -1, .ledPwrPlr = 0}, // 0 No mist cfg
{.btnPin = 35, .btnPlr = 1, .uartSelPin = 33, .uartSelPlr = 1, .ledModePin = 12, .ledModePlr = 1, .ledPwrPin = 14, .ledPwrPlr = 1}, // 1 UZG-01 / CZC-1.0
Expand All @@ -32,7 +32,7 @@ MistConfig mistConfigs[] = {
};

// Board configurations
// !!! Don't forget to edit BOARD_CFG_CNT !!!
// Don't forget to edit BOARD_CFG_CNT !!!
BrdConfigStruct brdConfigs[] = {
{"SLS-classic", .ethConfigIndex = -1, .zbConfigIndex = 7, .mistConfigIndex = 3}, // 0
{"UZG-01", .ethConfigIndex = 2, .zbConfigIndex = 0, .mistConfigIndex = 1}, // 1
Expand Down

0 comments on commit 3b7a9b2

Please sign in to comment.