Skip to content

Commit 0e01781

Browse files
committed
add license
1 parent 1ff9438 commit 0e01781

File tree

7 files changed

+35
-12
lines changed

7 files changed

+35
-12
lines changed

.github/workflows/Arduino-Lint-Check.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Arduino Lint
22
on:
33
push:
4-
branches: [ main ]
54
pull_request:
6-
branches: [ main ]
75
jobs:
86
lint:
97
name: Lint Check

.github/workflows/arduino-action-paper-compile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- '**.cpp'
1616
- '**.h'
1717
- 'arduino-test-compile.sh'
18-
- 'action.yml'
18+
- '*.yml'
1919
workflow_dispatch:
2020
jobs:
2121
build:

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 M5Stack
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[![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)
55
[![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)
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+
[![Clang Format](https://github.com/m5stack/M5EPD/actions/workflows/clang-format-check.yml/badge.svg)](https://github.com/m5stack/M5EPD/actions/workflows/clang-format-check.yml)
77

88

99
English | [中文](README_cn.md)

README_cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![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)
44
[![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)
5+
[![Clang Format](https://github.com/m5stack/M5EPD/actions/workflows/clang-format-check.yml/badge.svg)](https://github.com/m5stack/M5EPD/actions/workflows/clang-format-check.yml)
66

77
[English](README.md) | 中文
88

examples/Unit/KEY/KEY.ino

+6-4
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ void changeLedColor();
3333

3434
void setup() {
3535
M5.begin(); // Init M5Stack 初始化M5Stack
36-
M5.EPD.SetRotation(
37-
90); // Set the rotation of the display. 设置屏幕旋转角度
36+
// Set the rotation of the display. 设置屏幕旋转角度
37+
M5.EPD.SetRotation(90);
38+
3839
M5.EPD.Clear(true); // Clear the screen. 清屏
3940
M5.RTC.begin(); // Init the RTC. 初始化 RTC
4041
canvas.createCanvas(540, 960); // Create a canvas. 创建画布
4142
canvas.setTextSize(3); // Set the text size. 设置文字大小
42-
canvas.drawString("UNIT-KEY Example", 135,
43-
350); // Draw a string. 绘制字符串
43+
44+
// Draw a string. 绘制字符串
45+
canvas.drawString("UNIT-KEY Example", 135, 350);
4446
canvas.pushCanvas(0, 0, UPDATE_MODE_DU4); // Update the screen. 更新屏幕
4547

4648
pinMode(KEY_PIN, INPUT_PULLUP); // Init Key pin. 初始化Key引脚.

examples/Unit/LIMIT/LIMIT.ino

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ M5EPD_Canvas canvas(&M5.EPD);
2121

2222
void setup() {
2323
M5.begin(); // Init M5Stack 初始化M5Stack
24-
M5.EPD.SetRotation(
25-
90); // Set the rotation of the display. 设置屏幕旋转角度
24+
25+
// Set the rotation of the display. 设置屏幕旋转角度
26+
M5.EPD.SetRotation(90);
2627
M5.EPD.Clear(true); // Clear the screen. 清屏
2728
M5.RTC.begin(); // Init the RTC. 初始化 RTC
2829
canvas.createCanvas(540, 960); // Create a canvas. 创建画布
2930
canvas.setTextSize(3); // Set the text size. 设置文字大小
31+
3032
canvas.drawString("UNIT-LIMIT Example", 110,
31-
350); // Draw a string. 绘制字符串
33+
350); // Draw a string. 绘制字符串
3234
canvas.pushCanvas(0, 0, UPDATE_MODE_DU4); // Update the screen. 更新屏幕
3335

3436
Serial.begin(115200);

0 commit comments

Comments
 (0)