Skip to content

Commit

Permalink
Fixes compile error on workflow and add PIO check
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Dec 13, 2024
1 parent e698434 commit 7f93b98
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/platformio-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ jobs:
# - board: Paper
# espressif32: '4_4_0'

include:
# Specific sketches for m5stack-core-esp32 only
- example: GraphicalMeter
board: Core
framework: Arduino
espressif32: latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion examples/UnitUnified/GraphicalMeter/src/ui_plotter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Plotter {
{
push(_parent, x, y);
}
virtual void push(LovyanGFX* dst, const int32_t x, const int32_t y);
void push(LovyanGFX* dst, const int32_t x, const int32_t y);

protected:
m5gfx::rgb565_t lineColor() const
Expand Down
6 changes: 3 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -690,19 +690,19 @@ build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/UnitKmeterIS
; For the following samples, please refer to PlotToSerial to create env for your own environment
; 以下のサンプルは、PlotToSerial を参考にして、自分の環境にあった env を作成してください
;
[env:GraphicalMeter_Vmeter_Core]
[env:GraphicalMeter_Core_Arduino_latest]
extends=Core, option_release, arduino_latest
build_flags = ${option_release.build_flags}
-DUSING_VMETER
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/GraphicalMeter>

[env:GraphicalMeter_Ameter_Core]
[env:GraphicalMeter_Core_Arduino_latest]
extends=Core, option_release, arduino_latest
build_flags = ${option_release.build_flags}
-DUSING_AMETER
build_src_filter = +<*> -<.git/> -<.svn/> +<../examples/UnitUnified/GraphicalMeter>

[env:GraphicalMeter_KmeterISO_Core]
[env:GraphicalMeter_Core_Arduino_latest]
extends=Core, option_release, arduino_latest
build_flags = ${option_release.build_flags}
-DUSING_KMETER_ISO
Expand Down

0 comments on commit 7f93b98

Please sign in to comment.