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: content/hardware/03.nano/boards/nano-matter/tutorials/getting-started-matter-display/getting-started-matter-display.md
+312-6Lines changed: 312 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -871,6 +871,8 @@ EPD.setOrientation(7);
871
871
```
872
872

873
873
874
+
***Test the library example called __Common_Orientation__***
875
+
874
876
#### Text
875
877
876
878
To display text on the E-ink screen you need to define different screen parameters such as **font**, **orientation**, the **string** to be shown and its **color**.
@@ -937,24 +939,328 @@ EPD.flush(); // update the screen to show the text on buffer
937
939
938
940

939
941
940
-
- Forms
941
-
- Refresh
942
+
***Test the library example called __Common_Text__***
943
+
944
+
#### Graphics
945
+
946
+
The E-ink display API includes some predefined functions for basic geometrical shapes, here you find some:
To control the LED color use the `set_pixel` function as follows:
980
+
981
+
```arduino
982
+
myRGB.set_pixel(<R>, <G>, <B>); // pass the RGB color code in the (0 - 255) range
983
+
```
984
+
985
+

986
+
987
+
***Test the library example called __EXT4_WS2813C__***
946
988
947
989
### 3-axis Accelerometer
948
990
949
-
- Accel example
991
+
The Nano Matter Display features a LIS2DH12 3-axis accelerometer that can be easily used with open-source libraries as the `SparkFun LIS2DH12`, install it by using the IDE Library Manager.
992
+
993
+
The following example code adapts the screen orientation to the physical board rotation just as your smartphone does.
994
+
995
+
```arduino
996
+
#include <Wire.h>
997
+
998
+
// EPD Screen Library and Configuration
999
+
#include "PDLS_EXT4_Basic_Matter.h"
1000
+
#include "hV_Configuration.h"
1001
+
1002
+
// Accelerometer support library
1003
+
#include "SparkFun_LIS2DH12.h" //Click here to get the library: http://librarymanager/All#SparkFun_LIS2DH12
The Nano Matter Display features a HDC2080 temperature and relative humidity sensor that can be easily used with open-source libraries as the `Lime Labs HDC2080`, install it by using the IDE Library Manager.
After uploading the example sketch you will be able to monitor the environment temperature and relative humidity alongside their historical minimum and maximums.
1254
+
1255
+

954
1256
955
1257
## Conclusion
956
1258
1259
+
In this tutorial you learned how to use the Nano Matter Display expansion kit, leveraging all its features like the E-ink screen to display high-contrast graphics with a low power consumption on a 2.9" (384x168) EPD. Other included features were explained like the built-in RGB LED, the 3-axis accelerometer and the temperature and humidity sensor. All these features were showcased using the user-friendly Arduino environment.
1260
+
957
1261
### Next Steps
958
1262
959
-
### Troubleshooting
1263
+
- Extend your knowledge with E-ink displays following the [Pervasive Displays documentation](https://docs.pervasivedisplays.com/).
1264
+
- Try all the examples included in the library for a deeper understanding on the API.
1265
+
- Start creating your own graphics to display custom data on the screen.
0 commit comments