ESPHome  2024.11.1
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::max7219digit::MAX7219Component Class Reference

#include <max7219digit.h>

Inheritance diagram for esphome::max7219digit::MAX7219Component:
esphome::display::DisplayBuffer esphome::spi::SPIDevice< spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_1MHZ > esphome::display::Display esphome::spi::SPIClient esphome::PollingComponent esphome::Component

Public Member Functions

void set_writer (max7219_writer_t &&writer)
 
void setup () override
 
void loop () override
 
void dump_config () override
 
void update () override
 
float get_setup_priority () const override
 
void display ()
 
void invert_on_off (bool on_off)
 
void invert_on_off ()
 
void turn_on_off (bool on_off)
 
void draw_absolute_pixel_internal (int x, int y, Color color) override
 
int get_height_internal () override
 
int get_width_internal () override
 
void set_intensity (uint8_t intensity)
 
void set_num_chips (uint8_t num_chips)
 
void set_num_chip_lines (uint8_t num_chip_lines)
 
void set_chip_lines_style (ChipLinesStyle chip_lines_style)
 
void set_chip_orientation (uint8_t rotate)
 
void set_scroll_speed (uint16_t speed)
 
void set_scroll_dwell (uint16_t dwell)
 
void set_scroll_delay (uint16_t delay)
 
void set_scroll (bool on_off)
 
void set_scroll_mode (ScrollMode mode)
 
void set_reverse (bool on_off)
 
void set_flip_x (bool flip_x)
 
void send_char (uint8_t chip, uint8_t data)
 
void send64pixels (uint8_t chip, const uint8_t pixels[8])
 
void scroll_left ()
 
void scroll (bool on_off, ScrollMode mode, uint16_t speed, uint16_t delay, uint16_t dwell)
 
void scroll (bool on_off, ScrollMode mode)
 
void scroll (bool on_off)
 
void intensity (uint8_t intensity)
 
uint8_t printdigitf (uint8_t pos, const char *format,...) __attribute__((format(printf
 Evaluate the printf-format and print the result at the given position. More...
 
uint8_t uint8_t printdigitf (const char *format,...) __attribute__((format(printf
 Evaluate the printf-format and print the result at position 0. More...
 
uint8_t uint8_t uint8_t printdigit (uint8_t pos, const char *str)
 Print str at the given position. More...
 
uint8_t printdigit (const char *str)
 Print str at position 0. More...
 
uint8_t strftimedigit (uint8_t pos, const char *format, ESPTime time) __attribute__((format(strftime
 Evaluate the strftime-format and print the result at the given position. More...
 
uint8_t uint8_t strftimedigit (const char *format, ESPTime time) __attribute__((format(strftime
 Evaluate the strftime-format and print the result at position 0. More...
 
uint8_t uint8_t display::DisplayType get_display_type () override
 
- Public Member Functions inherited from esphome::display::DisplayBuffer
int get_width () override
 Get the width of the image in pixels with rotation applied. More...
 
int get_height () override
 Get the height of the image in pixels with rotation applied. More...
 
void draw_pixel_at (int x, int y, Color color) override
 Set a single pixel at the specified coordinates to the given color. More...
 
- Public Member Functions inherited from esphome::display::Display
virtual void fill (Color color)
 Fill the entire screen with the given color. More...
 
void clear ()
 Clear the entire screen by filling it with OFF pixels. More...
 
int get_native_width ()
 Get the native (original) width of the display in pixels. More...
 
int get_native_height ()
 Get the native (original) height of the display in pixels. More...
 
void draw_pixel_at (int x, int y)
 Set a single pixel at the specified coordinates to default color. More...
 
virtual void draw_pixels_at (int x_start, int y_start, int w, int h, const uint8_t *ptr, ColorOrder order, ColorBitness bitness, bool big_endian, int x_offset, int y_offset, int x_pad)
 Given an array of pixels encoded in the nominated format, draw these into the display's buffer. More...
 
void draw_pixels_at (int x_start, int y_start, int w, int h, const uint8_t *ptr, ColorOrder order, ColorBitness bitness, bool big_endian)
 Convenience overload for base case where the pixels are packed into the buffer with no gaps (e.g. suits LVGL.) More...
 
void line (int x1, int y1, int x2, int y2, Color color=COLOR_ON)
 Draw a straight line from the point [x1,y1] to [x2,y2] with the given color. More...
 
void line_at_angle (int x, int y, int angle, int length, Color color=COLOR_ON)
 Draw a straight line at the given angle based on the origin [x, y] for a specified length with the given color. More...
 
void line_at_angle (int x, int y, int angle, int start_radius, int stop_radius, Color color=COLOR_ON)
 Draw a straight line at the given angle based on the origin [x, y] from a specified start and stop radius with the given color. More...
 
void horizontal_line (int x, int y, int width, Color color=COLOR_ON)
 Draw a horizontal line from the point [x,y] to [x+width,y] with the given color. More...
 
void vertical_line (int x, int y, int height, Color color=COLOR_ON)
 Draw a vertical line from the point [x,y] to [x,y+width] with the given color. More...
 
void rectangle (int x1, int y1, int width, int height, Color color=COLOR_ON)
 Draw the outline of a rectangle with the top left point at [x1,y1] and the bottom right point at [x1+width,y1+height]. More...
 
void filled_rectangle (int x1, int y1, int width, int height, Color color=COLOR_ON)
 Fill a rectangle with the top left point at [x1,y1] and the bottom right point at [x1+width,y1+height]. More...
 
void circle (int center_x, int center_xy, int radius, Color color=COLOR_ON)
 Draw the outline of a circle centered around [center_x,center_y] with the radius radius with the given color. More...
 
void filled_circle (int center_x, int center_y, int radius, Color color=COLOR_ON)
 Fill a circle centered around [center_x,center_y] with the radius radius with the given color. More...
 
void filled_ring (int center_x, int center_y, int radius1, int radius2, Color color=COLOR_ON)
 Fill a ring centered around [center_x,center_y] between two circles with the radius1 and radius2 with the given color. More...
 
void filled_gauge (int center_x, int center_y, int radius1, int radius2, int progress, Color color=COLOR_ON)
 Fill a half-ring "gauge" centered around [center_x,center_y] between two circles with the radius1 and radius2 with he given color and filled up to 'progress' percent. More...
 
void triangle (int x1, int y1, int x2, int y2, int x3, int y3, Color color=COLOR_ON)
 Draw the outline of a triangle contained between the points [x1,y1], [x2,y2] and [x3,y3] with the given color. More...
 
void filled_triangle (int x1, int y1, int x2, int y2, int x3, int y3, Color color=COLOR_ON)
 Fill a triangle contained between the points [x1,y1], [x2,y2] and [x3,y3] with the given color. More...
 
void get_regular_polygon_vertex (int vertex_id, int *vertex_x, int *vertex_y, int center_x, int center_y, int radius, int edges, RegularPolygonVariation variation=VARIATION_POINTY_TOP, float rotation_degrees=ROTATION_0_DEGREES)
 Get the specified vertex (x,y) coordinates for the regular polygon inscribed in the circle centered on [center_x,center_y] with the given radius. More...
 
void regular_polygon (int x, int y, int radius, int edges, RegularPolygonVariation variation=VARIATION_POINTY_TOP, float rotation_degrees=ROTATION_0_DEGREES, Color color=COLOR_ON, RegularPolygonDrawing drawing=DRAWING_OUTLINE)
 Draw the outline of a regular polygon inscribed in the circle centered on [x,y] with the given radius and color. More...
 
void regular_polygon (int x, int y, int radius, int edges, RegularPolygonVariation variation, Color color, RegularPolygonDrawing drawing=DRAWING_OUTLINE)
 
void regular_polygon (int x, int y, int radius, int edges, Color color, RegularPolygonDrawing drawing=DRAWING_OUTLINE)
 
void filled_regular_polygon (int x, int y, int radius, int edges, RegularPolygonVariation variation=VARIATION_POINTY_TOP, float rotation_degrees=ROTATION_0_DEGREES, Color color=COLOR_ON)
 Fill a regular polygon inscribed in the circle centered on [x,y] with the given radius and color. More...
 
void filled_regular_polygon (int x, int y, int radius, int edges, RegularPolygonVariation variation, Color color)
 
void filled_regular_polygon (int x, int y, int radius, int edges, Color color)
 
void print (int x, int y, BaseFont *font, Color color, TextAlign align, const char *text, Color background=COLOR_OFF)
 Print text with the anchor point at [x,y] with font. More...
 
void print (int x, int y, BaseFont *font, Color color, const char *text, Color background=COLOR_OFF)
 Print text with the top left at [x,y] with font. More...
 
void print (int x, int y, BaseFont *font, TextAlign align, const char *text)
 Print text with the anchor point at [x,y] with font. More...
 
void print (int x, int y, BaseFont *font, const char *text)
 Print text with the top left at [x,y] with font. More...
 
void printf (int x, int y, BaseFont *font, Color color, Color background, TextAlign align, const char *format,...) __attribute__((format(printf
 Evaluate the printf-format format and print the result with the anchor point at [x,y] with font. More...
 
void void printf (int x, int y, BaseFont *font, Color color, TextAlign align, const char *format,...) __attribute__((format(printf
 Evaluate the printf-format format and print the result with the anchor point at [x,y] with font. More...
 
void void void printf (int x, int y, BaseFont *font, Color color, const char *format,...) __attribute__((format(printf
 Evaluate the printf-format format and print the result with the top left at [x,y] with font. More...
 
void void void void printf (int x, int y, BaseFont *font, TextAlign align, const char *format,...) __attribute__((format(printf
 Evaluate the printf-format format and print the result with the anchor point at [x,y] with font. More...
 
void void void void void printf (int x, int y, BaseFont *font, const char *format,...) __attribute__((format(printf
 Evaluate the printf-format format and print the result with the top left at [x,y] with font. More...
 
void void void void void void strftime (int x, int y, BaseFont *font, Color color, TextAlign align, const char *format, ESPTime time) __attribute__((format(strftime
 Evaluate the strftime-format format and print the result with the anchor point at [x,y] with font. More...
 
void void void void void void void strftime (int x, int y, BaseFont *font, Color color, const char *format, ESPTime time) __attribute__((format(strftime
 Evaluate the strftime-format format and print the result with the top left at [x,y] with font. More...
 
void void void void void void void void strftime (int x, int y, BaseFont *font, TextAlign align, const char *format, ESPTime time) __attribute__((format(strftime
 Evaluate the strftime-format format and print the result with the anchor point at [x,y] with font. More...
 
void void void void void void void void void strftime (int x, int y, BaseFont *font, const char *format, ESPTime time) __attribute__((format(strftime
 Evaluate the strftime-format format and print the result with the top left at [x,y] with font. More...
 
void void void void void void void void void void image (int x, int y, BaseImage *image, Color color_on=COLOR_ON, Color color_off=COLOR_OFF)
 Draw the image with the top-left corner at [x,y] to the screen. More...
 
void image (int x, int y, BaseImage *image, ImageAlign align, Color color_on=COLOR_ON, Color color_off=COLOR_OFF)
 Draw the image at [x,y] to the screen. More...
 
void graph (int x, int y, graph::Graph *graph, Color color_on=COLOR_ON)
 Draw the graph with the top-left corner at [x,y] to the screen. More...
 
void legend (int x, int y, graph::Graph *graph, Color color_on=COLOR_ON)
 Draw the legend for graph with the top-left corner at [x,y] to the screen. More...
 
void qr_code (int x, int y, qr_code::QrCode *qr_code, Color color_on=COLOR_ON, int scale=1)
 Draw the qr_code with the top-left corner at [x,y] to the screen. More...
 
void menu (int x, int y, graphical_display_menu::GraphicalDisplayMenu *menu, int width, int height)
 
void get_text_bounds (int x, int y, const char *text, BaseFont *font, TextAlign align, int *x1, int *y1, int *width, int *height)
 Get the text bounds of the given string. More...
 
void set_writer (display_writer_t &&writer)
 Internal method to set the display writer lambda. More...
 
void show_page (DisplayPage *page)
 
void show_next_page ()
 
void show_prev_page ()
 
void set_pages (std::vector< DisplayPage *> pages)
 
const DisplayPageget_active_page () const
 
void add_on_page_change_trigger (DisplayOnPageChangeTrigger *t)
 
void set_rotation (DisplayRotation rotation)
 Internal method to set the display rotation with. More...
 
void set_auto_clear (bool auto_clear_enabled)
 
DisplayRotation get_rotation () const
 
void start_clipping (Rect rect)
 Set the clipping rectangle for further drawing. More...
 
void start_clipping (int16_t left, int16_t top, int16_t right, int16_t bottom)
 
void extend_clipping (Rect rect)
 Add a rectangular region to the invalidation region. More...
 
void extend_clipping (int16_t left, int16_t top, int16_t right, int16_t bottom)
 
void shrink_clipping (Rect rect)
 substract a rectangular region to the invalidation region More...
 
void shrink_clipping (uint16_t left, uint16_t top, uint16_t right, uint16_t bottom)
 
void end_clipping ()
 Reset the invalidation region. More...
 
Rect get_clipping () const
 Get the current the clipping rectangle. More...
 
bool is_clipping () const
 
bool clip (int x, int y)
 Check if pixel is within region of display. More...
 
void test_card ()
 
void show_test_card ()
 
- Public Member Functions inherited from esphome::PollingComponent
 PollingComponent ()
 
 PollingComponent (uint32_t update_interval)
 Initialize this polling component with the given update interval in ms. More...
 
virtual void set_update_interval (uint32_t update_interval)
 Manually set the update interval in ms for this polling object. More...
 
void call_setup () override
 
virtual uint32_t get_update_interval () const
 Get the update interval in ms of this sensor. More...
 
void start_poller ()
 
void stop_poller ()
 
- Public Member Functions inherited from esphome::Component
float get_actual_setup_priority () const
 
void set_setup_priority (float priority)
 
virtual float get_loop_priority () const
 priority of loop(). More...
 
void call ()
 
virtual void on_shutdown ()
 
virtual void on_safe_shutdown ()
 
uint32_t get_component_state () const
 
virtual void mark_failed ()
 Mark this component as failed. More...
 
bool is_failed () const
 
bool is_ready () const
 
virtual bool can_proceed ()
 
bool status_has_warning () const
 
bool status_has_error () const
 
void status_set_warning (const char *message="unspecified")
 
void status_set_error (const char *message="unspecified")
 
void status_clear_warning ()
 
void status_clear_error ()
 
void status_momentary_warning (const std::string &name, uint32_t length=5000)
 
void status_momentary_error (const std::string &name, uint32_t length=5000)
 
bool has_overridden_loop () const
 
void set_component_source (const char *source)
 Set where this component was loaded from for some debug messages. More...
 
const char * get_component_source () const
 Get the integration where this component was declared as a string. More...
 
- Public Member Functions inherited from esphome::spi::SPIDevice< spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_1MHZ >
 SPIDevice ()
 
 SPIDevice (SPIComponent *parent, GPIOPin *cs_pin)
 
void spi_setup () override
 
void spi_teardown () override
 
void set_spi_parent (SPIComponent *parent)
 
void set_cs_pin (GPIOPin *cs)
 
void set_data_rate (uint32_t data_rate)
 
void set_bit_order (SPIBitOrder order)
 
void set_mode (SPIMode mode)
 
uint8_t read_byte ()
 
void read_array (uint8_t *data, size_t length)
 
void write (uint16_t data, size_t num_bits)
 Write a single data item, up to 32 bits. More...
 
void write_cmd_addr_data (size_t cmd_bits, uint32_t cmd, size_t addr_bits, uint32_t address, const uint8_t *data, size_t length, uint8_t bus_width=1)
 
void write_byte (uint8_t data)
 
void transfer_array (uint8_t *data, size_t length)
 Write the array data, replace with received data. More...
 
void transfer_array (std::array< uint8_t, N > &data)
 
uint8_t transfer_byte (uint8_t data)
 
void write_byte16 (uint16_t data)
 Write 16 bit data. More...
 
void write_array16 (const uint16_t *data, size_t length)
 Write an array of data as 16 bit values, byte-swapping if required. More...
 
void enable ()
 
void disable ()
 
void write_array (const uint8_t *data, size_t length)
 
void write_array (const std::array< uint8_t, N > &data)
 
void write_array (const std::vector< uint8_t > &data)
 
- Public Member Functions inherited from esphome::spi::SPIClient
 SPIClient (SPIBitOrder bit_order, SPIMode mode, uint32_t data_rate)
 
bool spi_is_ready ()
 

Protected Member Functions

void send_byte_ (uint8_t a_register, uint8_t data)
 
void send_to_all_ (uint8_t a_register, uint8_t data)
 
uint8_t orientation_180_ ()
 
size_t get_buffer_length_ ()
 
- Protected Member Functions inherited from esphome::display::DisplayBuffer
void init_internal_ (uint32_t buffer_length)
 
- Protected Member Functions inherited from esphome::display::Display
bool clamp_x_ (int x, int w, int &min_x, int &max_x)
 
bool clamp_y_ (int y, int h, int &min_y, int &max_y)
 
void vprintf_ (int x, int y, BaseFont *font, Color color, Color background, TextAlign align, const char *format, va_list arg)
 
void do_update_ ()
 
void clear_clipping_ ()
 
void filled_flat_side_triangle_ (int x1, int y1, int x2, int y2, int x3, int y3, Color color)
 This method fills a triangle using only integer variables by using a modified bresenham algorithm. More...
 
void sort_triangle_points_by_y_ (int *x1, int *y1, int *x2, int *y2, int *x3, int *y3)
 
- Protected Member Functions inherited from esphome::Component
virtual void call_loop ()
 
virtual void call_dump_config ()
 
void set_interval (const std::string &name, uint32_t interval, std::function< void()> &&f)
 Set an interval function with a unique name. More...
 
void set_interval (uint32_t interval, std::function< void()> &&f)
 
bool cancel_interval (const std::string &name)
 Cancel an interval function. More...
 
void set_retry (const std::string &name, uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f)
 Set an retry function with a unique name. More...
 
void set_retry (uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f)
 
bool cancel_retry (const std::string &name)
 Cancel a retry function. More...
 
void set_timeout (const std::string &name, uint32_t timeout, std::function< void()> &&f)
 Set a timeout function with a unique name. More...
 
void set_timeout (uint32_t timeout, std::function< void()> &&f)
 
bool cancel_timeout (const std::string &name)
 Cancel a timeout function. More...
 
void defer (const std::string &name, std::function< void()> &&f)
 Defer a callback to the next loop() call. More...
 
void defer (std::function< void()> &&f)
 Defer a callback to the next loop() call. More...
 
bool cancel_defer (const std::string &name)
 Cancel a defer callback using the specified name, name must not be empty. More...
 

Protected Attributes

uint8_t intensity_
 
uint8_t num_chips_
 Intensity of the display from 0 to 15 (most) More...
 
uint8_t num_chip_lines_
 
ChipLinesStyle chip_lines_style_
 
bool scroll_
 
bool reverse_
 
bool flip_x_
 
bool update_ {false}
 
uint16_t scroll_speed_
 
uint16_t scroll_delay_
 
uint16_t scroll_dwell_
 
uint16_t old_buffer_size_ = 0
 
ScrollMode scroll_mode_
 
bool invert_ = false
 
uint8_t orientation_
 
uint8_t bckgrnd_ = 0x0
 
std::vector< std::vector< uint8_t > > max_displaybuffer_
 
uint32_t last_scroll_ = 0
 
uint16_t stepsleft_
 
optional< max7219_writer_twriter_local_ {}
 
- Protected Attributes inherited from esphome::display::DisplayBuffer
uint8_t * buffer_ {nullptr}
 
- Protected Attributes inherited from esphome::display::Display
DisplayRotation rotation_ {DISPLAY_ROTATION_0_DEGREES}
 
optional< display_writer_twriter_ {}
 
DisplayPagepage_ {nullptr}
 
DisplayPageprevious_page_ {nullptr}
 
std::vector< DisplayOnPageChangeTrigger * > on_page_change_triggers_
 
bool auto_clear_enabled_ {true}
 
std::vector< Rectclipping_rectangle_
 
bool show_test_card_ {false}
 
- Protected Attributes inherited from esphome::PollingComponent
uint32_t update_interval_
 
- Protected Attributes inherited from esphome::Component
uint32_t component_state_ {0x0000}
 State of this component. More...
 
float setup_priority_override_ {NAN}
 
const char * component_source_ {nullptr}
 
- Protected Attributes inherited from esphome::spi::SPIClient
SPIBitOrder bit_order_ {BIT_ORDER_MSB_FIRST}
 
SPIMode mode_ {MODE0}
 
uint32_t data_rate_ {1000000}
 
SPIComponentparent_ {nullptr}
 
GPIOPincs_ {nullptr}
 
SPIDelegatedelegate_ {nullptr}
 

Detailed Description

Definition at line 28 of file max7219digit.h.

Member Function Documentation

◆ display()

void esphome::max7219digit::MAX7219Component::display ( )

Definition at line 109 of file max7219digit.cpp.

◆ draw_absolute_pixel_internal()

void HOT esphome::max7219digit::MAX7219Component::draw_absolute_pixel_internal ( int  x,
int  y,
Color  color 
)
overridevirtual

Implements esphome::display::DisplayBuffer.

Definition at line 157 of file max7219digit.cpp.

◆ dump_config()

void esphome::max7219digit::MAX7219Component::dump_config ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 49 of file max7219digit.cpp.

◆ get_buffer_length_()

size_t esphome::max7219digit::MAX7219Component::get_buffer_length_ ( )
protected

◆ get_display_type()

uint8_t uint8_t display::DisplayType esphome::max7219digit::MAX7219Component::get_display_type ( )
inlineoverridevirtual

Implements esphome::display::Display.

Definition at line 93 of file max7219digit.h.

◆ get_height_internal()

int esphome::max7219digit::MAX7219Component::get_height_internal ( )
overridevirtual

Implements esphome::display::Display.

Definition at line 151 of file max7219digit.cpp.

◆ get_setup_priority()

float esphome::max7219digit::MAX7219Component::get_setup_priority ( ) const
overridevirtual

Reimplemented from esphome::Component.

Definition at line 23 of file max7219digit.cpp.

◆ get_width_internal()

int esphome::max7219digit::MAX7219Component::get_width_internal ( )
overridevirtual

Implements esphome::display::Display.

Definition at line 155 of file max7219digit.cpp.

◆ intensity()

void esphome::max7219digit::MAX7219Component::intensity ( uint8_t  intensity)

Definition at line 221 of file max7219digit.cpp.

◆ invert_on_off() [1/2]

void esphome::max7219digit::MAX7219Component::invert_on_off ( bool  on_off)

Definition at line 197 of file max7219digit.cpp.

◆ invert_on_off() [2/2]

void esphome::max7219digit::MAX7219Component::invert_on_off ( )

Definition at line 198 of file max7219digit.cpp.

◆ loop()

void esphome::max7219digit::MAX7219Component::loop ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 63 of file max7219digit.cpp.

◆ orientation_180_()

uint8_t esphome::max7219digit::MAX7219Component::orientation_180_ ( )
protected

Definition at line 136 of file max7219digit.cpp.

◆ printdigit() [1/2]

uint8_t esphome::max7219digit::MAX7219Component::printdigit ( uint8_t  pos,
const char *  str 
)

Print str at the given position.

Definition at line 299 of file max7219digit.cpp.

◆ printdigit() [2/2]

uint8_t esphome::max7219digit::MAX7219Component::printdigit ( const char *  str)

Print str at position 0.

Definition at line 297 of file max7219digit.cpp.

◆ printdigitf() [1/2]

uint8_t esphome::max7219digit::MAX7219Component::printdigitf ( uint8_t  pos,
const char *  format,
  ... 
)

Evaluate the printf-format and print the result at the given position.

Definition at line 309 of file max7219digit.cpp.

◆ printdigitf() [2/2]

uint8_t esphome::max7219digit::MAX7219Component::printdigitf ( const char *  format,
  ... 
)

Evaluate the printf-format and print the result at position 0.

Definition at line 319 of file max7219digit.cpp.

◆ scroll() [1/3]

void esphome::max7219digit::MAX7219Component::scroll ( bool  on_off,
ScrollMode  mode,
uint16_t  speed,
uint16_t  delay,
uint16_t  dwell 
)

Definition at line 208 of file max7219digit.cpp.

◆ scroll() [2/3]

void esphome::max7219digit::MAX7219Component::scroll ( bool  on_off,
ScrollMode  mode 
)

Definition at line 216 of file max7219digit.cpp.

◆ scroll() [3/3]

void esphome::max7219digit::MAX7219Component::scroll ( bool  on_off)

Definition at line 226 of file max7219digit.cpp.

◆ scroll_left()

void esphome::max7219digit::MAX7219Component::scroll_left ( )

Definition at line 228 of file max7219digit.cpp.

◆ send64pixels()

void esphome::max7219digit::MAX7219Component::send64pixels ( uint8_t  chip,
const uint8_t  pixels[8] 
)

Definition at line 253 of file max7219digit.cpp.

◆ send_byte_()

void esphome::max7219digit::MAX7219Component::send_byte_ ( uint8_t  a_register,
uint8_t  data 
)
protected

Definition at line 177 of file max7219digit.cpp.

◆ send_char()

void esphome::max7219digit::MAX7219Component::send_char ( uint8_t  chip,
uint8_t  data 
)

Definition at line 245 of file max7219digit.cpp.

◆ send_to_all_()

void esphome::max7219digit::MAX7219Component::send_to_all_ ( uint8_t  a_register,
uint8_t  data 
)
protected

Definition at line 181 of file max7219digit.cpp.

◆ set_chip_lines_style()

void esphome::max7219digit::MAX7219Component::set_chip_lines_style ( ChipLinesStyle  chip_lines_style)
inline

Definition at line 58 of file max7219digit.h.

◆ set_chip_orientation()

void esphome::max7219digit::MAX7219Component::set_chip_orientation ( uint8_t  rotate)
inline

Definition at line 59 of file max7219digit.h.

◆ set_flip_x()

void esphome::max7219digit::MAX7219Component::set_flip_x ( bool  flip_x)
inline

Definition at line 66 of file max7219digit.h.

◆ set_intensity()

void esphome::max7219digit::MAX7219Component::set_intensity ( uint8_t  intensity)
inline

Definition at line 55 of file max7219digit.h.

◆ set_num_chip_lines()

void esphome::max7219digit::MAX7219Component::set_num_chip_lines ( uint8_t  num_chip_lines)
inline

Definition at line 57 of file max7219digit.h.

◆ set_num_chips()

void esphome::max7219digit::MAX7219Component::set_num_chips ( uint8_t  num_chips)
inline

Definition at line 56 of file max7219digit.h.

◆ set_reverse()

void esphome::max7219digit::MAX7219Component::set_reverse ( bool  on_off)
inline

Definition at line 65 of file max7219digit.h.

◆ set_scroll()

void esphome::max7219digit::MAX7219Component::set_scroll ( bool  on_off)
inline

Definition at line 63 of file max7219digit.h.

◆ set_scroll_delay()

void esphome::max7219digit::MAX7219Component::set_scroll_delay ( uint16_t  delay)
inline

Definition at line 62 of file max7219digit.h.

◆ set_scroll_dwell()

void esphome::max7219digit::MAX7219Component::set_scroll_dwell ( uint16_t  dwell)
inline

Definition at line 61 of file max7219digit.h.

◆ set_scroll_mode()

void esphome::max7219digit::MAX7219Component::set_scroll_mode ( ScrollMode  mode)
inline

Definition at line 64 of file max7219digit.h.

◆ set_scroll_speed()

void esphome::max7219digit::MAX7219Component::set_scroll_speed ( uint16_t  speed)
inline

Definition at line 60 of file max7219digit.h.

◆ set_writer()

void esphome::max7219digit::MAX7219Component::set_writer ( max7219_writer_t &&  writer)
inline

Definition at line 32 of file max7219digit.h.

◆ setup()

void esphome::max7219digit::MAX7219Component::setup ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 25 of file max7219digit.cpp.

◆ strftimedigit() [1/2]

uint8_t esphome::max7219digit::MAX7219Component::strftimedigit ( uint8_t  pos,
const char *  format,
ESPTime  time 
)

Evaluate the strftime-format and print the result at the given position.

Definition at line 330 of file max7219digit.cpp.

◆ strftimedigit() [2/2]

uint8_t esphome::max7219digit::MAX7219Component::strftimedigit ( const char *  format,
ESPTime  time 
)

Evaluate the strftime-format and print the result at position 0.

Definition at line 337 of file max7219digit.cpp.

◆ turn_on_off()

void esphome::max7219digit::MAX7219Component::turn_on_off ( bool  on_off)

Definition at line 200 of file max7219digit.cpp.

◆ update()

void esphome::max7219digit::MAX7219Component::update ( )
overridevirtual

Implements esphome::PollingComponent.

Definition at line 187 of file max7219digit.cpp.

Field Documentation

◆ bckgrnd_

uint8_t esphome::max7219digit::MAX7219Component::bckgrnd_ = 0x0
protected

Definition at line 115 of file max7219digit.h.

◆ chip_lines_style_

ChipLinesStyle esphome::max7219digit::MAX7219Component::chip_lines_style_
protected

Definition at line 103 of file max7219digit.h.

◆ flip_x_

bool esphome::max7219digit::MAX7219Component::flip_x_
protected

Definition at line 106 of file max7219digit.h.

◆ intensity_

uint8_t esphome::max7219digit::MAX7219Component::intensity_
protected

Definition at line 100 of file max7219digit.h.

◆ invert_

bool esphome::max7219digit::MAX7219Component::invert_ = false
protected

Definition at line 113 of file max7219digit.h.

◆ last_scroll_

uint32_t esphome::max7219digit::MAX7219Component::last_scroll_ = 0
protected

Definition at line 117 of file max7219digit.h.

◆ max_displaybuffer_

std::vector<std::vector<uint8_t> > esphome::max7219digit::MAX7219Component::max_displaybuffer_
protected

Definition at line 116 of file max7219digit.h.

◆ num_chip_lines_

uint8_t esphome::max7219digit::MAX7219Component::num_chip_lines_
protected

Definition at line 102 of file max7219digit.h.

◆ num_chips_

uint8_t esphome::max7219digit::MAX7219Component::num_chips_
protected

Intensity of the display from 0 to 15 (most)

Definition at line 101 of file max7219digit.h.

◆ old_buffer_size_

uint16_t esphome::max7219digit::MAX7219Component::old_buffer_size_ = 0
protected

Definition at line 111 of file max7219digit.h.

◆ orientation_

uint8_t esphome::max7219digit::MAX7219Component::orientation_
protected

Definition at line 114 of file max7219digit.h.

◆ reverse_

bool esphome::max7219digit::MAX7219Component::reverse_
protected

Definition at line 105 of file max7219digit.h.

◆ scroll_

bool esphome::max7219digit::MAX7219Component::scroll_
protected

Definition at line 104 of file max7219digit.h.

◆ scroll_delay_

uint16_t esphome::max7219digit::MAX7219Component::scroll_delay_
protected

Definition at line 109 of file max7219digit.h.

◆ scroll_dwell_

uint16_t esphome::max7219digit::MAX7219Component::scroll_dwell_
protected

Definition at line 110 of file max7219digit.h.

◆ scroll_mode_

ScrollMode esphome::max7219digit::MAX7219Component::scroll_mode_
protected

Definition at line 112 of file max7219digit.h.

◆ scroll_speed_

uint16_t esphome::max7219digit::MAX7219Component::scroll_speed_
protected

Definition at line 108 of file max7219digit.h.

◆ stepsleft_

uint16_t esphome::max7219digit::MAX7219Component::stepsleft_
protected

Definition at line 118 of file max7219digit.h.

◆ update_

bool esphome::max7219digit::MAX7219Component::update_ {false}
protected

Definition at line 107 of file max7219digit.h.

◆ writer_local_

optional<max7219_writer_t> esphome::max7219digit::MAX7219Component::writer_local_ {}
protected

Definition at line 120 of file max7219digit.h.


The documentation for this class was generated from the following files: