Closed
Description
Hello Arduino Dev community, I've searched this repo but haven't found, so please guide me where the built-in examples of Arduino IDE are stored and can I propose some improvements?
More specificly, the Fade sketch has these lines:
if (brightness == 0 || brightness == 255) {
fadeAmount = -fadeAmount ;
}
which I'd say is not a good code as if we change fadeAmount
to, say, 7
than we will miss the == 255
value (brightness
will rise up to 7*36 = 252
and then will become 259
and will grow further). It should be
if (brightness <= 0 || brightness >= 255) {
fadeAmount = -fadeAmount ;
}
instead, I would say. So, where do I propose such improvements?
Metadata
Metadata
Assignees
Labels
No labels