en-us_commands:reference:isegbegin
This is an old revision of the document!
Table of Contents
IsegBegin()
IsegBegin() sets the CLK/DIO pins and device number of a TM1637 FND display.
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 CLKuint8_t dioPin — Arduino pin number connected to FND DIOuint16_t bitDelayUs = 100 — TM1637 bit communication delay (µs), default 100uint8_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); // MPAINO: TXD(D14), RXD(D15) IsegBrightness(7); IsegClear(); } void loop() { IsegDecimal((millis() / 1000UL) % 10000UL, true); delay(200); }
Precautions
- These commands are only for 4-digit FND displays with a TM1637 IC. They do not directly drive a generic multiplexed FND display.
- Use display commands after successfully calling
IsegBegin(). - Initialization fails if CLK and DIO use the same pin, or if the device number is
7or higher. length + positionmust be 4 or less. Numbers outside the range are not displayed, andfalseis returned.- Communication may block execution for several ms. Do not call this from an interrupt service routine.
- Do not use the specified pins simultaneously for UART, PWM, encoders, external interrupts or other functions.
- Check the actual module and product manuals for FND power and signal voltages.
en-us_commands/reference/isegbegin.1788785568.txt.gz · Last modified: by 127.0.0.1
