mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 17:32:18 +00:00
Compare commits
4 Commits
00a211b765
...
816895b81e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
816895b81e | ||
![]() |
97a1a42940 | ||
![]() |
72dd5bd88d | ||
![]() |
ffe9728782 |
29
.github/workflows/main_matrix.yml
vendored
29
.github/workflows/main_matrix.yml
vendored
@ -424,6 +424,31 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
publish-firmware:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
|
needs: [release-firmware]
|
||||||
|
env:
|
||||||
|
targets: esp32,esp32s3,esp32c3,esp32c6,nrf52840,rp2040,stm32
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
|
||||||
|
- name: Get release version string
|
||||||
|
run: echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
|
||||||
|
id: version
|
||||||
|
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
pattern: firmware-{${{ env.targets }}}-${{ steps.version.outputs.long }}
|
||||||
|
merge-multiple: true
|
||||||
|
path: ./publish
|
||||||
|
|
||||||
- name: Publish firmware to meshtastic.github.io
|
- name: Publish firmware to meshtastic.github.io
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
env:
|
env:
|
||||||
@ -433,10 +458,10 @@ jobs:
|
|||||||
deploy_key: ${{ secrets.DIST_PAGES_DEPLOY_KEY }}
|
deploy_key: ${{ secrets.DIST_PAGES_DEPLOY_KEY }}
|
||||||
external_repository: meshtastic/meshtastic.github.io
|
external_repository: meshtastic/meshtastic.github.io
|
||||||
publish_branch: master
|
publish_branch: master
|
||||||
publish_dir: ./output
|
publish_dir: ./publish
|
||||||
destination_dir: ${{ env.DEST_PREFIX }}firmware-${{ steps.version.outputs.long }}
|
destination_dir: ${{ env.DEST_PREFIX }}firmware-${{ steps.version.outputs.long }}
|
||||||
keep_files: true
|
keep_files: true
|
||||||
user_name: github-actions[bot]
|
user_name: github-actions[bot]
|
||||||
user_email: github-actions[bot]@users.noreply.github.com
|
user_email: github-actions[bot]@users.noreply.github.com
|
||||||
commit_message: ${{ steps.version.outputs.long }} ${{ matrix.arch }}
|
commit_message: ${{ steps.version.outputs.long }}
|
||||||
enable_jekyll: true
|
enable_jekyll: true
|
||||||
|
@ -34,8 +34,6 @@ void TouchScreenCST226SE::init()
|
|||||||
attachInterrupt(
|
attachInterrupt(
|
||||||
TOUCH_IRQ, []() { isPressed = true; }, FALLING);
|
TOUCH_IRQ, []() { isPressed = true; }, FALLING);
|
||||||
}
|
}
|
||||||
touch.setMirrorXY(false, true);
|
|
||||||
touch.setSwapXY(true);
|
|
||||||
LOG_DEBUG("CST226SE init OK at address 0x%02X", addr);
|
LOG_DEBUG("CST226SE init OK at address 0x%02X", addr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -49,8 +47,8 @@ bool TouchScreenCST226SE::getTouch(int16_t &x, int16_t &y)
|
|||||||
int16_t x_array[1], y_array[1];
|
int16_t x_array[1], y_array[1];
|
||||||
uint8_t touched = touch.getPoint(x_array, y_array, 1);
|
uint8_t touched = touch.getPoint(x_array, y_array, 1);
|
||||||
if (touched > 0) {
|
if (touched > 0) {
|
||||||
x = x_array[0];
|
y = x_array[0];
|
||||||
y = y_array[0];
|
x = (TFT_WIDTH - y_array[0]);
|
||||||
LOG_DEBUG("TouchScreen touch %dx %dy", x, y);
|
LOG_DEBUG("TouchScreen touch %dx %dy", x, y);
|
||||||
|
|
||||||
// Check bounds
|
// Check bounds
|
||||||
|
Loading…
Reference in New Issue
Block a user