35#ifdef PREINIT_SUPPORTED
39#ifdef MikroCCoreVersion
40 #if MikroCCoreVersion >= 1
45#include "drv_digital_out.h"
46#include "drv_digital_in.h"
47#include "drv_spi_master.h"
61#define C7X10R_MAP_MIKROBUS( cfg, mikrobus ) \
62 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
63 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
64 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
65 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
66 cfg.rc = MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
68 cfg.rr = MIKROBUS( mikrobus, MIKROBUS_PWM )
75#define C7X10R_DISPLAY_DELAY_5MS 5
76#define C7X10R_DISPLAY_DELAY_10MS 10
77#define C7X10R_DISPLAY_DELAY_20MS 20
78#define C7X10R_DISPLAY_DELAY_35MS 35
79#define C7X10R_DISPLAY_DELAY_50MS 50
80#define C7X10R_DISPLAY_DELAY_100MS 100
81#define C7X10R_DISPLAY_DELAY_150MS 150
88#define C7X10R_DISPLAY_LEFT 0x00
89#define C7X10R_DISPLAY_RIGHT 0x01
90#define C7X10R_DISPLAY_REFRESH 0x10
97#define C7X10R_DISPLAY_PIXEL_REFRESH 0x01
98#define C7X10R_DISPLAY_PIXEL_STORAGE 0x00
void c7x10r_draw_char(c7x10r_t *ctx, char ch, uint8_t pos, uint8_t ch_delay)
Draw char (function).
void c7x10r_cfg_setup(c7x10r_cfg_t *cfg)
Config Object Initialization function.
void c7x10r_draw_pixel(c7x10r_t *ctx, c7x10r_pixel_t *pixel, uint8_t mode, uint8_t px_delay)
Draw pixel (function).
void c7x10r_display_process(c7x10r_t *ctx, uint8_t *frame, uint16_t disp_delay)
Display process (function).
c7x10r_return_value_t c7x10r_init(c7x10r_t *ctx, c7x10r_cfg_t *cfg)
Initialization function.
void c7x10r_draw_number(c7x10r_t *ctx, uint8_t num, uint16_t num_delay)
Draw number (function).
c7x10r_return_value_t
Definition c7x10r.h:167
@ C7X10R_OK
Definition c7x10r.h:169
@ C7X10R_ERROR
Definition c7x10r.h:170
Click configuration structure definition.
Definition c7x10r.h:134
pin_name_t rr
Definition c7x10r.h:146
spi_master_chip_select_polarity_t cs_polarity
Definition c7x10r.h:152
pin_name_t sck
Definition c7x10r.h:139
spi_master_mode_t spi_mode
Definition c7x10r.h:151
pin_name_t mosi
Definition c7x10r.h:138
uint32_t spi_speed
Definition c7x10r.h:150
pin_name_t rc
Definition c7x10r.h:144
pin_name_t miso
Definition c7x10r.h:137
pin_name_t rst
Definition c7x10r.h:145
pin_name_t cs
Definition c7x10r.h:140
pixel structure definition.
Definition c7x10r.h:160
uint8_t cord_x
Definition c7x10r.h:161
uint8_t cord_y
Definition c7x10r.h:162
Click ctx object definition.
Definition c7x10r.h:114
digital_out_t cs
Definition c7x10r.h:115
spi_master_t spi
Definition c7x10r.h:125
digital_out_t rc
Definition c7x10r.h:119
digital_out_t rst
Definition c7x10r.h:120
pin_name_t chip_select
Definition c7x10r.h:126
digital_out_t rr
Definition c7x10r.h:121