pixelmatix / SmartMatrix

SmartMatrix Library for Teensy 3, Teensy 4, and ESP32
http://docs.pixelmatix.com/SmartMatrix
621 stars 162 forks source link

defaultBrightness calculated incorrectly in FeatureDemo.ino #56

Closed drogge closed 6 years ago

drogge commented 6 years ago

The parentheses in the two lines that do brightness calculation in FeatureDemo.ino are in the wrong place:

const int defaultBrightness = 100(255/100); // full brightness //const int defaultBrightness = 15(255/100); // dim: 15% brightness

should be:

const int defaultBrightness = (100255)/10); // full brightness //const int defaultBrightness = (15255)/100; // dim: 15% brightness

Or you can just leave out the parentheses.

embedded-creations commented 6 years ago

thanks!