![]() MAX_COLUMNS )] p = Program (( TextMessage ( "Here comes the rainbow!" ), Message ( rainbow ), )) # Open the device and program d = Device () d. ![]() program ( p ) Rainbow Message from usbfan import Colour, Column, Device, Message, Program, TextMessage # We can cycle the rainbow here and fill all 144 columns rainbow_colours = rainbow = * 11, rainbow_colours ) for i in range ( Message. red )) p = Program (( Message ( columns ),)) # Open the device and program d = Device () d. program ( p ) Single Red Dot from usbfan import Colour, Column, Device, Message, Program # A generic "Message" is made up of 1 to 144 "Column" object # A "Column" has 11 boolean pixels and a "Colour" columns = + * 10, Colour. Installation pip install microwave-usbfanĮxample Implementation Two Text Messages from usbfan import Device, Program, TextMessage # A program is made up of a list of Messages # A "TextMessage" is a subclass of the generic Message class p = Program (( TextMessage ( "Hello, World!" ), TextMessage ( "How is everyone going?" ),)) # Open the device and program d = Device () d. This library is a pure Python reimplementation of the Jaycar RGB USB LED fanĬommunication occurs using USB HID reports as a transport.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |