Sorry for my english ^^',
My matrix (64x32) is controlled by my raspberry pi4 and hat adafruit.
I'm using rpi-rgb-led-matrix/bindings/python/samples/runtext.py to create Clock.py.
`#!/usr/bin/env python
-- coding: utf-8 --
Cette matrice affiche l'heure et la date en étant synchroniser avec la machine qui l'éxécute.
from samplebase import SampleBase
from rgbmatrix import graphics, RGBMatrix, RGBMatrixOptions
from datetime import datetime, timedelta
import time
class Clock(SampleBase):
def init(self, *args, *kwargs):
super(Clock, self).init(args, **kwargs)
if name == "main":
clock = Clock()
if (not clock.process()):
clock.print_help()
`
Result:
I want to add warning symbol with function matrix.SetPixel(). But when i add "Configuration for the matrix" to define the function matrix. My screen display a parasite and the text flashes:
`#!/usr/bin/env python
-- coding: utf-8 --
Cette matrice affiche l'heure et la date en étant synchroniser avec la machine qui l'éxécute.
from samplebase import SampleBase
from rgbmatrix import graphics, RGBMatrix, RGBMatrixOptions
from datetime import datetime, timedelta
import time
Sorry for my english ^^', My matrix (64x32) is controlled by my raspberry pi4 and hat adafruit. I'm using rpi-rgb-led-matrix/bindings/python/samples/runtext.py to create Clock.py.
`#!/usr/bin/env python
-- coding: utf-8 --
Cette matrice affiche l'heure et la date en étant synchroniser avec la machine qui l'éxécute.
from samplebase import SampleBase from rgbmatrix import graphics, RGBMatrix, RGBMatrixOptions from datetime import datetime, timedelta import time
class Clock(SampleBase): def init(self, *args, *kwargs): super(Clock, self).init(args, **kwargs)
Main function
if name == "main": clock = Clock() if (not clock.process()): clock.print_help() `
Result:
I want to add warning symbol with function matrix.SetPixel(). But when i add "Configuration for the matrix" to define the function matrix. My screen display a parasite and the text flashes:
`#!/usr/bin/env python
-- coding: utf-8 --
Cette matrice affiche l'heure et la date en étant synchroniser avec la machine qui l'éxécute.
from samplebase import SampleBase from rgbmatrix import graphics, RGBMatrix, RGBMatrixOptions from datetime import datetime, timedelta import time
Configuration for the matrix
options = RGBMatrixOptions() options.rows = 32 options.cols = 64 options.gpio_slowdown = 4 options.parallel = 1 options.brightness = 70 options.hardware_mapping="adafruit-hat" matrix = RGBMatrix(options = options)
def warning(ax,ay,actif):
Le /_\ est en bas a droite par défault l'axe x représente l'horizon et l'axe la hauteur.
class Clock(SampleBase): def init(self, *args, *kwargs): super(Clock, self).init(args, **kwargs)
Main function
if name == "main": clock = Clock() if (not clock.process()): clock.print_help() print(date)`
the symbol:
So i don't understand how configure to use graphic with setpixel. Thank for your help and good day :)