30#ifdef PREINIT_SUPPORTED
34#ifdef MikroCCoreVersion
35 #if MikroCCoreVersion >= 1
40#include "drv_digital_out.h"
41#include "drv_digital_in.h"
42#include "drv_spi_master.h"
56#define C7X10B_MAP_MIKROBUS( cfg, mikrobus ) \
57 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
58 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
59 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
60 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
61 cfg.rc = MIKROBUS( mikrobus, MIKROBUS_AN ); \
62 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
63 cfg.rr = MIKROBUS( mikrobus, MIKROBUS_PWM )
70#define C7X10B_DISPLAY_DELAY_5MS 5
71#define C7X10B_DISPLAY_DELAY_10MS 10
72#define C7X10B_DISPLAY_DELAY_20MS 20
73#define C7X10B_DISPLAY_DELAY_35MS 35
74#define C7X10B_DISPLAY_DELAY_50MS 50
75#define C7X10B_DISPLAY_DELAY_100MS 100
76#define C7X10B_DISPLAY_DELAY_150MS 150
83#define C7X10B_DISPLAY_LEFT 0x00
84#define C7X10B_DISPLAY_RIGHT 0x01
85#define C7X10B_DISPLAY_REFRESH 0x10
92#define C7X10B_DISPLAY_PIXEL_REFRESH 0x01
93#define C7X10B_DISPLAY_PIXEL_STORAGE 0x00
c7x10b_return_value_t c7x10b_init(c7x10b_t *ctx, c7x10b_cfg_t *cfg)
Initialization function.
void c7x10b_draw_char(c7x10b_t *ctx, char ch, uint8_t pos, uint8_t ch_delay)
Draw char (function).
void c7x10b_cfg_setup(c7x10b_cfg_t *cfg)
Config Object Initialization function.
void c7x10b_display_process(c7x10b_t *ctx, uint8_t *frame, uint16_t disp_delay)
Display process (function).
void c7x10b_draw_number(c7x10b_t *ctx, uint8_t num, uint16_t num_delay)
Draw number (function).
void c7x10b_draw_pixel(c7x10b_t *ctx, c7x10b_pixel_t *pixel, uint8_t mode, uint8_t px_delay)
Draw pixel (function).
c7x10b_return_value_t
Definition c7x10b.h:162
@ C7X10B_OK
Definition c7x10b.h:163
@ C7X10B_ERROR
Definition c7x10b.h:164
Click configuration structure definition.
Definition c7x10b.h:129
pin_name_t rr
Definition c7x10b.h:141
spi_master_chip_select_polarity_t cs_polarity
Definition c7x10b.h:147
pin_name_t sck
Definition c7x10b.h:134
spi_master_mode_t spi_mode
Definition c7x10b.h:146
pin_name_t mosi
Definition c7x10b.h:133
uint32_t spi_speed
Definition c7x10b.h:145
pin_name_t rc
Definition c7x10b.h:139
pin_name_t miso
Definition c7x10b.h:132
pin_name_t rst
Definition c7x10b.h:140
pin_name_t cs
Definition c7x10b.h:135
pixel structure definition.
Definition c7x10b.h:155
uint8_t cord_x
Definition c7x10b.h:156
uint8_t cord_y
Definition c7x10b.h:157
Click ctx object definition.
Definition c7x10b.h:109
digital_out_t cs
Definition c7x10b.h:110
spi_master_t spi
Definition c7x10b.h:120
digital_out_t rc
Definition c7x10b.h:114
digital_out_t rst
Definition c7x10b.h:115
pin_name_t chip_select
Definition c7x10b.h:121
digital_out_t rr
Definition c7x10b.h:116