IsegBrightness() sets display brightness and visibility.
bool IsegBrightness(uint8_t brightness, bool on = true, uint8_t device = 0)
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
IsegBrightness(brightness, on, device) | uint8_t brightness — Brightness 0~7bool on = true — true: display ON, false: display OFFuint8_t device = 0 — FND device number 0~6, defaults to 0 | bool | Sets display brightness and visibility. |
void setup() { IsegBegin(14, 15, 100, 0); // Set the CLK/DIO pins and device number of the TM1637 FND. IsegBegin(130, 131, 100, 1); // MPAINO K/K2 GPIO channels 0, 1 IsegBrightness(7, true, 0); // Set display brightness and on/off state. IsegBrightness(4, true, 1); // Set display brightness and on/off state. } void loop() { IsegDecimal(1234, false, 0, 4, 0, 0); // Display an integer in decimal format. IsegHex(0xABCD, false, 0, 4, 0, 1); // Display an integer in hexadecimal format. }
IsegBegin().7 or higher.length + position must be 4 or less. Numbers outside the range are not displayed, and false is returned.