Table of Contents

IsegBegin()

IsegBegin() sets the CLK/DIO pins and device number of a TM1637 FND display.

IsegBegin command operation flow

bool IsegBegin(uint8_t clkPin, uint8_t dioPin, uint16_t bitDelayUs = 100, uint8_t device = 0)

Commands

Command Arguments Return Value Operation
IsegBegin(clkPin, dioPin, bitDelayUs, device) uint8_t clkPin — Arduino pin number connected to FND CLK
uint8_t dioPin — Arduino pin number connected to FND DIO
uint16_t bitDelayUs = 100 — TM1637 bit communication delay (µs), default 100
uint8_t device = 0 — FND device number 0~6, defaults to 0
bool Sets the CLK/DIO pins and device number of a TM1637 FND display.

Example

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.
}

Precautions

Built-in Commands in the Same Category

← Built-in Command List