Go to the documentation of this file.
26 #include "drv_digital_out.h"
27 #include "drv_digital_in.h"
28 #include "drv_spi_master.h"
42 #define C7X10B_MAP_MIKROBUS( cfg, mikrobus ) \
43 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
44 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
45 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
46 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
47 cfg.rc = MIKROBUS( mikrobus, MIKROBUS_AN ); \
48 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
49 cfg.rr = MIKROBUS( mikrobus, MIKROBUS_PWM )
56 #define C7X10B_DISPLAY_DELAY_5MS 5
57 #define C7X10B_DISPLAY_DELAY_10MS 10
58 #define C7X10B_DISPLAY_DELAY_20MS 20
59 #define C7X10B_DISPLAY_DELAY_35MS 35
60 #define C7X10B_DISPLAY_DELAY_50MS 50
61 #define C7X10B_DISPLAY_DELAY_100MS 100
62 #define C7X10B_DISPLAY_DELAY_150MS 150
69 #define C7X10B_DISPLAY_LEFT 0x00
70 #define C7X10B_DISPLAY_RIGHT 0x01
71 #define C7X10B_DISPLAY_REFRESH 0x10
78 #define C7X10B_DISPLAY_PIXEL_REFRESH 0x01
79 #define C7X10B_DISPLAY_PIXEL_STORAGE 0x00
107 pin_name_t chip_select;
132 spi_master_mode_t spi_mode;
133 spi_master_chip_select_polarity_t cs_polarity;
Click configuration structure definition.
Definition: c7x10b.h:113
void c7x10b_cfg_setup(c7x10b_cfg_t *cfg)
Config Object Initialization function.
pixel structure definition.
Definition: c7x10b.h:139
void c7x10b_draw_pixel(c7x10b_t *ctx, c7x10b_pixel_t *pixel, uint8_t mode, uint8_t px_delay)
Draw pixel (function).
void c7x10b_draw_char(c7x10b_t *ctx, char ch, uint8_t pos, uint8_t ch_delay)
Draw char (function).
void c7x10b_draw_number(c7x10b_t *ctx, uint8_t num, uint16_t num_delay)
Draw number (function).
void c7x10b_display_process(c7x10b_t *ctx, uint8_t *frame, uint16_t disp_delay)
Display process (function).
c7x10b_return_value_t
Definition: c7x10b.h:146
c7x10b_return_value_t c7x10b_init(c7x10b_t *ctx, c7x10b_cfg_t *cfg)
Initialization function.
Click ctx object definition.
Definition: c7x10b.h:93