Skip to content

Simple Python-Library to use as opposite part of the Ardunio-RGBDriver

Notifications You must be signed in to change notification settings

arnegue/PythonRGB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Summary

This project is the opposite side of one of these:

How to set it up?

Dependencies

  • OS: This basic example was tested on Windows and on a Raspberry Pi 2B.
  • Python: Testd on Python 3.4 and Python 3.6 and Python 3.8
  • PythonPackages: pyserial: python -m pip install pyserial

How to call?

Taken from the example in example.py:

from serial_rgb import RGB, SerialRGB

if __name__ == '__main__':
    arduino = SerialRGB("COM4")
    test_rgb = RGB(255, 255, 0)
    
    arduino.write_rgb(test_rgb)

Known bug

get_amount_rgbs() is unfortunatelly currently not working since when initiatilization of COM-Port some traffic to Arduino occurres. This bug i only necessary for the new Protocol (differnt colors for every LED). If you want to bypass that problem just manually set the amount_rgbs attribute.

About

Simple Python-Library to use as opposite part of the Ardunio-RGBDriver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages