adafruit / RGB-matrix-Panel

Arduino library and example code for the 16x32 RGB matrix panels in the shop
http://www.adafruit.com/products/420
303 stars 145 forks source link

Support for uint32_t RGB values #15

Open Aerospacesmith opened 10 years ago

Aerospacesmith commented 10 years ago

Added method Color(r,g,b); to support conversion to uint32 rgb variable and added methods for Color333,Color444, etc. to accept uint32_t variables.

Example: uint32_t ORANGE = matrix.Color(7,3,0); matrix.drawLine(X1,Y1,X2,Y2,matrix.Color333(ORANGE));