Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Example of Matter device for EXT4 extension board - All editions. More...
#include "PDLS_Common.h"
#include "Pervasive_Wide_Small.h"
#include "PDLS_Advanced.h"
#include <Matter.h>
#include <MatterLightbulb.h>
#include "ezWS2812gpio.h"
#include "qrcode.h"
Classes | |
struct | hsb_s |
Functions | |
void | displayAbout () |
Display the About page. | |
void | displayQR (const char *code) |
Display the QR-code. | |
void | displayValue (bool flag=true) |
Manage and display the RGB LED. | |
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 of Matter device for EXT4 extension board - All editions.
Based on Matter color lightbulb example
The example shows the basic usage of the Arduino Matter API.
The example lets users control a WS2812 LED strip/ring acting as a Matter lightbulb. It's possible to switch the LEDs on/off, adjust the brightness and the color as well. The device has to be commissioned to a Matter hub first. A WS2812 (NeoPixel) strip/ring/device needs to be connected to the board to the SPI SDO.
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 |
void displayValue | ( | bool | flag = true | ) |
Manage and display the RGB LED.
flag | default = true = update LED, false otherwise |
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 |