This commit is contained in:
Your Name
2025-03-26 17:17:40 +01:00
parent d0e1ad18e9
commit 76a676925d
10 changed files with 283 additions and 18 deletions

View File

@@ -1,6 +1,13 @@
/*
__ __ _ _____ ____ _____ __
| \/ | / \|_ _| _ \|_ _\ \/ /
| |\/| | / _ \ | | | |_) || | \ /
| | | |/ ___ \| | | _ < | | / \
|_| |_/_/ \_\_| |_| \_\___/_/\_\
Script to display a simple text on the matrix LED
sudo /var/www/moduleair_pro_4g/matrix/test_text --led-no-hardware-pulse
sudo /var/www/moduleair_pro_4g/matrix/test_text
Pour compiler:
g++ -Iinclude -Llib test_text.cc -o test_text -lrgbmatrix
@@ -25,7 +32,9 @@ int main(int argc, char *argv[]) {
defaults.row_address_type=3;
defaults.show_refresh_rate = true;
defaults.brightness = 100;
defaults.pwm_bits = 1;
defaults.panel_type = "FM6126A";
defaults.disable_hardware_pulsing = false;
rgb_matrix::Color color1(255, 0, 0); // Red color for the first line
rgb_matrix::Color color2(0, 0, 255); // Blue color for the second line