First of all Hello to all Thanks @TheRadziu This worked for me su - pi -c kodi This is how is should look like after edit # Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi su - pi -c kodi exit 0 There is no restart in the menu, and the rest
А примеры для текущей версии библиотеки работают ? https://luma-led-matrix.readthedocs.io/en/latest/install.html#examples Не подскажите как сделать чтобы время не двигалось (остановить бегущую строку) while(True): msg = time.strftime("%H:%M") show_message(device, msg, fill="white", font=proportiona...
А откуда этот test.py ? Если смотреть код device.py то реально там такого атрибута нет ( Да есть проблемы с доками, все по английски. С мелочами приходиться разбираться долго (((( Скрипт https://github.com/mB-PiBox/max7219-examples/blob/master/timedate.py брал тут https://github.com/mB-PiBox/max721...
не совсем ))) сейчас на libopenjp2.so.7 ругается. Поищи на малинке вообще такой файл есть ? Возможно что-то криво встало. Установил пакет pi@raspberrypi:~ $ sudo apt-get install libopenjp2-7-dev Все равно ошибка pi@raspberrypi:~ $ sudo python3 test.py Traceback (most recent call last): File "test.p...
попробуй sudo python3 Все тоже самое pi@raspberrypi:~/max7219 $ pip3 list DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. cryptography...
модуль точно установлен ? еще бы проверить какой питон при установке и при запуске. на малине два питона подефолту ) Как это все проверить? при запуске скрипта я полагаю что запускается питон 2 pi@raspberrypi:~ $ pip list DEPRECATION: The default format will switch to columns in the future. You can...
Комменть строку import max7219.led as led это для старой библиотеки Не чего не получается #!/usr/bin/env python import os, time, sys import multiprocessing from luma.led_matrix.device import max7219 from luma.core.interface.serial import spi, noop from luma.core.render import canvas from luma.core....
а если вот так #!/usr/bin/env python import os, time, sys import multiprocessing while(True): clock = time.strftime("%H%M") seconds = int(time.strftime("%S")) month = time.strftime(" %m") day = time.strftime(" %d") year = time.strftime("%Y") for n, c in enumerate(clock): letter(n, ord(c)) if seconds...
вот на что #!/usr/bin/env python import os, time, sys import multiprocessing import max7219.led as led from luma.led_matrix.device import max7219 from luma.core.interface.serial import spi, noop from luma.core.render import canvas from luma.core.legacy import text, show_message from luma.core.legacy...
Я примитивный сделал но не нравится что на экране бегущая строка.
И ещё а в этой матрицы можно регулировать яркость или нет.? https://youtu.be/zxAP1QcKCI0
Thanks for the answer, but the reason was not the correct script code. A new error has occurred. How can I fix it? :?: :?: #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017-18 Richard Hull and contributors # See LICENSE.rst for details. import re import sys import datetime import ti...
I'm desperate, I can not help it. :cry: :cry: :cry: #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017-18 Richard Hull and contributors # See LICENSE.rst for details. import re import time import argparse from luma.led_matrix.device import max7219 from luma.core.interface.serial impo...
Where can I see the changes that have occurred in the new version. It was python times.py Traceback (most recent call last): Fire "times.py", line 8, in <module> from LumaLed_Matrix.device import max7219 ImportError: No module named Luma.Led_Matrix.device Not sure if or where the author of Luma rec...
I suspect the line device = led.matrix(cascaded=4) should be device = max7219(cascaded=4) Where can I see the changes that have occurred in the new version. It was python times.py Traceback (most recent call last): Fire "times.py", line 8, in <module> from LumaLed_Matrix.device import max7219 Impor...
What's wrong with this script? #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017-18 Richard Hull and contributors # See LICENSE.rst for details. import time import argparse from luma.led_matrix.device import max7219 from luma.core.interface.serial import spi, noop from luma.core.ren...
Всем привет. Подскажите у кого есть рабочий скрипт часов для матрицы max7219? Нашёл вот такие но они почему-то не работают, хотя стандартный работает https://youtu.be/J_jVooz-uNA Или скрипт часов написан для старой версии драйвера матрицы max7219 или не хватает каких-то зависимости. pi@raspberrypi:~...
Does not work. pi@raspberrypi:~ $ sudo python timedate.py ^CTraceback (most recent call last): File "timedate.py", line 21, in <module> device.letter(n, ord(c)) File "/usr/local/lib/python2.7/dist-packages/max7219/led.py", line 413, in letter self.flush() File "/usr/local/lib/python2.7/dist-packages...
Hello. Help create a clock on the matrix Max7219 8x8x4 in Raspberry pi3. https://pandaelectronicsbd.com/wp-content/uploads/2017/09/MAX7219-Dot-Matrix-Module-4-in-1.jpg pi@raspberrypi:~/examples $ sudo python timedate.py ^CTraceback (most recent call last): File "timedate.py", line 27, in <module> de...