Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Example for EXT4 extension board sensors and actuators - All editions. More...
#include "PDLS_Common.h"
#include "Pervasive_Wide_Small.h"
#include "PDLS_Basic.h"
#include "Wire.h"
#include <Matter.h>
#include <MatterTemperature.h>
#include <MatterHumidity.h>
#include "qrcode.h"
Classes | |
struct | measure_s |
Functions | |
void | displayAbout () |
Display the About page. | |
void | displayQR (const char *code) |
Display the QR-code. | |
bool | displayValue (uint8_t slot, STRING_CONST_TYPE name, measure_s *value, STRING_CONST_TYPE unit) |
Manage and display the measure. | |
uint8_t | menuOneButton (uint8_t button, const char *title, const char *option1, const char *option2=0, const char *option3=0, const char *option4=0) |
Display a menu managed by a single button. | |
void | displayCommissioning () |
Display the commission process. | |
void | displayDecommissioning () |
Display the decommission process. | |
void | displayIdenfication () |
Display the identification. | |
void | setup () |
Setup. | |
void | loop () |
Loop. | |
Example for EXT4 extension board sensors and actuators - All editions.
Based on Matter multiple sensor example
The example shows how to create multiple sensor instances with the Arduino Matter API.
The example creates a Matter temperature and humidity sensor device and publishes data through them. The device has to be commissioned to a Matter hub first.
Compatible boards:
void displayAbout | ( | ) |
Display the About page.
void displayDecommissioning | ( | ) |
Display the decommission process.
void displayQR | ( | const char * | code | ) |
Display the QR-code.
Display QR-code.
code | text
|
code | text |
bool displayValue | ( | uint8_t | slot, |
STRING_CONST_TYPE | name, | ||
measure_s * | value, | ||
STRING_CONST_TYPE | unit ) |
Manage and display the measure.
slot | 0 or 1 |
name | name of the measure |
value | measure as measure_s structure |
unit | text of the unit |
uint8_t menuOneButton | ( | uint8_t | button, |
const char * | title, | ||
const char * | option1, | ||
const char * | option2 = 0, | ||
const char * | option3 = 0, | ||
const char * | option4 = 0 ) |
Display a menu managed by a single button.
button | GPIO of the button |
title | text for title |
option1 | text for option 0, required |
option2 | text for option 1, optional |
option3 | text for option 2, optional |
option4 | text for option 3, optional |