File tree 6 files changed +47
-4
lines changed
6 files changed +47
-4
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,27 @@ if [[ -f $GITHUB_WORKSPACE/library.properties ]]; then
171
171
fi
172
172
fi
173
173
174
+ if [[ -f $GITHUB_WORKSPACE /library.properties ]]; then
175
+ OLD_IFS=" $IFS "
176
+ IFS=$' \n '
177
+ for line in ` cat $GITHUB_WORKSPACE /library.properties`
178
+ do
179
+ result=$( echo $line | grep " depends=" )
180
+ if [[ " $result " != " " ]]
181
+ then
182
+ depends_str=${line##* depends=}
183
+ IFS=" ,"
184
+ for lib in ${depends_str[@]}
185
+ do
186
+ echo " download $lib "
187
+ arduino-cli lib install $lib
188
+ done ;
189
+ fi
190
+ done
191
+ IFS=" $OLD_IFS "
192
+ fi
193
+
194
+
174
195
#
175
196
# Update index and install the required board platform
176
197
#
Original file line number Diff line number Diff line change
1
+ name : Arduino Lint
2
+ on :
3
+ push :
4
+ branches : [ main ]
5
+ pull_request :
6
+ branches : [ main ]
7
+ jobs :
8
+ lint :
9
+ name : Lint Check
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : arduino/arduino-lint-action@v1
14
+ with :
15
+ library-manager : update
16
+ compliance : strict
17
+ project-type : all
Original file line number Diff line number Diff line change 2
2
# M5Paper Library
3
3
4
4
[ ![ Arduino Compile] ( https://github.com/m5stack/M5EPD/actions/workflows/arduino-action-paper-compile.yml/badge.svg )] ( https://github.com/m5stack/M5EPD/actions/workflows/arduino-action-paper-compile.yml )
5
+ [ ![ Arduino Lint] ( https://github.com/m5stack/M5EPD/actions/workflows/Arduino-Lint-Check.yml/badge.svg )] ( https://github.com/m5stack/M5EPD/actions/workflows/Arduino-Lint-Check.yml )
5
6
[ ![ Clang Format] ( https://github.com/m5stack/M5EPD/actions/workflows/clang-format-check.yml/badge.svg )] ( https://github.com/m5stack/M5EPD/blob/main/.github/workflows/clang-format-check.yml )
6
7
7
8
Original file line number Diff line number Diff line change 1
1
# M5Paper Library
2
2
3
+ [ ![ Arduino Compile] ( https://github.com/m5stack/M5EPD/actions/workflows/arduino-action-paper-compile.yml/badge.svg )] ( https://github.com/m5stack/M5EPD/actions/workflows/arduino-action-paper-compile.yml )
4
+ [ ![ Arduino Lint] ( https://github.com/m5stack/M5EPD/actions/workflows/Arduino-Lint-Check.yml/badge.svg )] ( https://github.com/m5stack/M5EPD/actions/workflows/Arduino-Lint-Check.yml )
5
+ [ ![ Clang Format] ( https://github.com/m5stack/M5EPD/actions/workflows/clang-format-check.yml/badge.svg )] ( https://github.com/m5stack/M5EPD/blob/main/.github/workflows/clang-format-check.yml )
6
+
3
7
[ English] ( README.md ) | 中文
4
8
5
9
![ M5Paper_Pic_01] ( https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/product_jpg/assets/img/product_pics/core/m5paper/m5paper_01.jpg )
Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ void changeLedColor();
34
34
void setup () {
35
35
M5.begin (); // Init M5Stack 初始化M5Stack
36
36
M5.EPD .SetRotation (
37
- 90 ); // Set the rotation of the display. 设置屏幕旋转角度
37
+ 90 ); // Set the rotation of the display. 设置屏幕旋转角度
38
38
M5.EPD .Clear (true ); // Clear the screen. 清屏
39
39
M5.RTC .begin (); // Init the RTC. 初始化 RTC
40
40
canvas.createCanvas (540 , 960 ); // Create a canvas. 创建画布
41
41
canvas.setTextSize (3 ); // Set the text size. 设置文字大小
42
42
canvas.drawString (" UNIT-KEY Example" , 135 ,
43
- 350 ); // Draw a string. 绘制字符串
43
+ 350 ); // Draw a string. 绘制字符串
44
44
canvas.pushCanvas (0 , 0 , UPDATE_MODE_DU4); // Update the screen. 更新屏幕
45
45
46
46
pinMode (KEY_PIN, INPUT_PULLUP); // Init Key pin. 初始化Key引脚.
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ M5EPD_Canvas canvas(&M5.EPD);
22
22
void setup () {
23
23
M5.begin (); // Init M5Stack 初始化M5Stack
24
24
M5.EPD .SetRotation (
25
- 90 ); // Set the rotation of the display. 设置屏幕旋转角度
25
+ 90 ); // Set the rotation of the display. 设置屏幕旋转角度
26
26
M5.EPD .Clear (true ); // Clear the screen. 清屏
27
27
M5.RTC .begin (); // Init the RTC. 初始化 RTC
28
28
canvas.createCanvas (540 , 960 ); // Create a canvas. 创建画布
29
29
canvas.setTextSize (3 ); // Set the text size. 设置文字大小
30
30
canvas.drawString (" UNIT-LIMIT Example" , 110 ,
31
- 350 ); // Draw a string. 绘制字符串
31
+ 350 ); // Draw a string. 绘制字符串
32
32
canvas.pushCanvas (0 , 0 , UPDATE_MODE_DU4); // Update the screen. 更新屏幕
33
33
34
34
Serial.begin (115200 );
You can’t perform that action at this time.
0 commit comments