File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
examples/Example_04_SetBrightness Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void setup() {
35
35
Serial.println (" Display acknowledged." );
36
36
37
37
// The input to setBrightness is a duty cycle over 16
38
- // So, acceptable inputs to this function are ints between 0 (display off ) and 15 (full brightness)
38
+ // So, acceptable inputs to this function are ints between 0 (1/16 brightness ) and 15 (full brightness)
39
39
display.setBrightness (15 );
40
40
41
41
display.print (" Milk" );
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ bool HT16K33::clear()
322
322
}
323
323
324
324
// This function sets the brightness of all displays on the bus.
325
- // Duty cycle valid between 0 (off ) and 15 (full brightness)
325
+ // Duty cycle valid between 0 (1/16 brightness ) and 15 (full brightness)
326
326
bool HT16K33::setBrightness (uint8_t duty)
327
327
{
328
328
bool status = true ;
@@ -335,7 +335,7 @@ bool HT16K33::setBrightness(uint8_t duty)
335
335
}
336
336
337
337
// Set the brightness of a single display
338
- // Duty cycle valid between 0 (off ) and 15 (full brightness)
338
+ // Duty cycle valid between 0 (1/16 brightness ) and 15 (full brightness)
339
339
bool HT16K33::setBrightnessSingle (uint8_t displayNumber, uint8_t duty)
340
340
{
341
341
if (duty > 15 ) // Error check
You can’t perform that action at this time.
0 commit comments