You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,10 @@
6
6
7
7
## Overview
8
8
This library adds software touch buttons on CoreS3 and Tough, which does not have physical buttons or touch buttons, and enables the user to acquire the status via M5.BtnX.
9
-
Please use this as an interim feature until a similar feature is added to [M5Unified](https://github.com/m5stack/M5Unified) in the future.
9
+
~~Please use this as an interim feature until a similar feature is added to [M5Unified](https://github.com/m5stack/M5Unified) in the future.~~
10
+
11
+
Since M5Unified 0.2.3, **M5.setTouchButtonHeightByRatio(uint8_t ratio)** has been added, allowing the screen to be used as button (M5.BtnX)
12
+
You may want to use this feature.
10
13
11
14
It is also useful for those who are making a common source for Basic, Gray, Core2 and more, as it does not process anything other than CoreS3 and Tough.
12
15
@@ -16,7 +19,7 @@ In CoreS3SE, if M5Unified is used, the off-screen part functions as a button, as
16
19
*[M5Unified](https://github.com/m5stack/M5Unified) 0.1.16 or later
17
20
*[M5GFX](https://github.com/m5stack/M5GFX) 0.1.16 or later
18
21
19
-
**M5Unified is assumed, so it cannot be applied to those using M5Core3.h.**
22
+
**M5Unified is assumed, it is not applicable when device-specific headers such as M5Core3.h are used.**
20
23
21
24
## How to install
22
25
Install in an appropriate way depending on your environment.
@@ -77,7 +80,7 @@ You can specify it with begin or change it with changeAppearance.
77
80
|transparent_all|Transparent buttons are placed on the entire screen (three vertical sections)|
78
81
79
82
## Customize Buttons
80
-
You can get LGFX_Button\*.
83
+
You can get LGFX\_Button\*.
81
84
82
85
```cpp
83
86
voidsetup()
@@ -93,9 +96,10 @@ void setup()
93
96
btnA->setLabelText("Own");
94
97
}
95
98
```
99
+
Click [here](https://github.com/m5stack/M5GFX/blob/master/src/lgfx/v1/LGFX_Button.hpp) for more information about LGFX\_Button].
96
100
97
101
## Document
98
-
Can be created from a [configuration file](doc/Doxyfile) and [shell script](doc/doxy.sh) for [Doxygen](https://www.doxygen.nl/).
102
+
Can be created from a [configuration file](docs/Doxyfile) and [shell script](docs/doxy.sh) for [Doxygen](https://www.doxygen.nl/).
0 commit comments