From d7a98519f4014a9b8e04108322b4bf26d09bb61d Mon Sep 17 00:00:00 2001 From: Ric In New Mexico <78682404+RicInNewMexico@users.noreply.github.com> Date: Sat, 9 Sep 2023 18:37:35 -0600 Subject: [PATCH] Update variant.h (#2778) * Update variant.h Add second i2c channel on external connector for Station G1 * Create trunk-check.yml --------- Co-authored-by: Ben Meadors --- .github/workflows/trunk-check.yml | 22 ++++++++++++++++++++++ variants/station-g1/variant.h | 5 ++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/trunk-check.yml diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml new file mode 100644 index 000000000..e35b91cb9 --- /dev/null +++ b/.github/workflows/trunk-check.yml @@ -0,0 +1,22 @@ +name: Pull Request +on: [pull_request] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: read-all + +jobs: + trunk_check: + name: Trunk Check Runner + runs-on: ubuntu-latest + permissions: + checks: write # For trunk to post annotations + contents: read # For repo checkout + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Trunk Check + uses: trunk-io/trunk-action@v1 diff --git a/variants/station-g1/variant.h b/variants/station-g1/variant.h index 3439cb125..f49dbe854 100644 --- a/variants/station-g1/variant.h +++ b/variants/station-g1/variant.h @@ -3,6 +3,9 @@ #define I2C_SDA 21 #define I2C_SCL 22 +#define I2C_SDA1 14 // Second i2c channel on external IO connector +#define I2C_SCL1 15 // Second i2c channel on external IO connector + #define BUTTON_PIN 36 // The middle button GPIO on the Nano G1 //#define BUTTON_PIN_ALT 13 // Alternate GPIO for an external button if needed. Does anyone use this? It is not documented // anywhere. @@ -42,4 +45,4 @@ #define BAT_NOBATVOLT 6690 // different screen -#define USE_SH1106 \ No newline at end of file +#define USE_SH1106