 |
Serial Wombat Arduino Library
|
Go to the documentation of this file.
85 int16_t
begin(uint8_t clkPin, uint8_t dioPin, uint8_t digits,
SWTM1637Mode mode, uint8_t dataSourcePin, uint8_t brightness0to7);
103 int16_t
writeDigitOrder(uint8_t first, uint8_t second, uint8_t third, uint8_t fourth, uint8_t fifth, uint8_t sixth );
139 int16_t
writeAnimation(uint16_t bufferIndex, uint16_t delay, uint8_t numberOfFrames, uint8_t data[][6]);
164 virtual size_t write(uint8_t data);
166 virtual size_t write(
const uint8_t* buffer,
size_t size);
173 uint8_t _dioPin = 255;
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
Definition: SerialWombat.h:267
virtual size_t write(uint8_t data)
Write a byte to String mode, shifting other characters.
Definition: SerialWombatTM1637.cpp:180
int16_t begin(uint8_t clkPin, uint8_t dioPin, uint8_t digits, SWTM1637Mode mode, uint8_t dataSourcePin, uint8_t brightness0to7)
Initialize an instance of the TM1637 class.
Definition: SerialWombatTM1637.cpp:30
@ tm1637RawArray
Display raw LED segments sent by the host.
Definition: SerialWombatTM1637.h:31
int16_t writeDecimalBitmap(uint8_t decimalBitmapLSBleftDigit)
Set a bitmap of the MSB of each digit to control decimal points.
Definition: SerialWombatTM1637.cpp:107
@ tm1637Animation
Definition: SerialWombatTM1637.h:32
int16_t writeArray(uint8_t data[6])
Used to send data to the data array of the driver.
Definition: SerialWombatTM1637.cpp:77
int16_t writeDigitOrder(uint8_t first, uint8_t second, uint8_t third, uint8_t fourth, uint8_t fifth, uint8_t sixth)
Used to reorder the digits of the display to match display hardware.
Definition: SerialWombatTM1637.cpp:47
SerialWombatTM1637(SerialWombatChip &serialWombat)
Constructor for SerialWombatTM1637 class.
Definition: SerialWombatTM1637.cpp:26
int16_t writeAnimation(uint16_t bufferIndex, uint16_t delay, uint8_t numberOfFrames, uint8_t data[][6])
Loads an animation to the Serial Wombat user buffer area and initializes the animation.
Definition: SerialWombatTM1637.cpp:137
int16_t writeBlinkBitmap(uint8_t blinkBitmapLSBleftDigit)
Set a bitmap of the digits that should blink at 2Hz with 7/8 duty cycle.
Definition: SerialWombatTM1637.cpp:165
int16_t suppressLeadingZeros(bool suppress)
Whether or not to suppress leading zeros in decimal mode.
Definition: SerialWombatTM1637.cpp:150
A Class representing a TM1637 Seven-Segment Display connected to two Serial Wombat pins.
Definition: SerialWombatTM1637.h:69
@ tm1637CharArray
Display a string sent by the host.
Definition: SerialWombatTM1637.h:30
Describes a Serial Wombat Pin. Is base class for other pin modes.
Definition: SerialWombat.h:727
@ tm1637Decimal16
Get the number to display from a pin or data source and display in decimal.
Definition: SerialWombatTM1637.h:28
int16_t writeBrightness(uint8_t brightness0to7)
Changes the brightness of the display.
Definition: SerialWombatTM1637.cpp:122
virtual int availableForWrite()
Definition: SerialWombatTM1637.h:168
SWTM1637Mode
Definition: SerialWombatTM1637.h:27
@ tm1637Hex16
Get the number to display from a pin or data source and display in hex.
Definition: SerialWombatTM1637.h:29