Prusa MINI Firmware overview
|
#include <stdio.h>
#include "stm32f4xx_hal.h"
#include "gui.h"
#include "config.h"
#include "gpio.h"
#include "st7789v.h"
#include "jogwheel.h"
#include "hwio_a3ides.h"
#include "diag.h"
#include "sys.h"
◆ gui_run()
46 render_text_align(
rect_ui16(5, 250, 230, 40),
"RESET PRINTER", font1,
COLOR_ORANGE,
COLOR_WHITE,
padding_ui8(2, 6, 2, 2),
ALIGN_CENTER);
◆ hspi2
◆ st7789v_cfg
◆ jogwheel_cfg
#define RENDER_FLG(a, r)
Definition: display_helper.h:10
jogwheel_config_t jogwheel_config
Definition: jogwheel.c:95
Definition: guitypes.h:76
#define COLOR_WHITE
Definition: guitypes.h:41
void sys_reset(void)
Definition: sys.cpp:20
#define PE12
Definition: variant.h:112
void gui_init(void)
Definition: gui.c:43
#define ALIGN_CENTER
Definition: guitypes.h:19
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
const jogwheel_config_t jogwheel_cfg
Definition: guimain.c:95
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
#define IDR_FNT_NORMAL
Definition: resource.h:10
#define IDR_FNT_SPECIAL
Definition: resource.h:13
#define IDR_PNG_icon_pepa
Definition: resource.h:44
display_draw_text_t * draw_text
Definition: display.h:35
#define ST7789V_DEF_MADCTL
Definition: st7789v.h:14
#define GPIO_PULLUP
Definition: stm32f4xx_hal_gpio.h:171
display_fill_rect_t * fill_rect
Definition: display.h:33
static int gpio_get(uint8_t pin8)
Definition: gpio.h:94
const st7789v_config_t st7789v_cfg
Definition: guimain.c:85
#define COLOR_ORANGE
Definition: guitypes.h:57
static void gpio_init(uint8_t pin8, uint32_t mode, uint32_t pull, uint32_t speed)
Definition: gpio.h:102
#define JOGWHEEL_PIN_EN1
Definition: config_a3ides2209_02.h:59
#define JOGWHEEL_PIN_ENC
Definition: config_a3ides2209_02.h:61
SPI_HandleTypeDef hspi2
Definition: main.c:81
#define JOGWHEEL_DEF_FLG
Definition: jogwheel.h:15
void render_text_align(rect_ui16_t rc, const char *text, font_t *font, color_t clr0, color_t clr1, padding_ui8_t padding, uint16_t flags)
Definition: display_helper.c:6
display_t * display
Definition: display.c:6
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
#define ST7789V_DEF_COLMOD
Definition: st7789v.h:13
#define ST7789V_FLG_DMA
Definition: st7789v.h:9
#define ST7789V_PIN_RS
Definition: config_a3ides2209_02.h:54
#define COLOR_BLACK
Definition: guitypes.h:40
#define JOGWHEEL_PIN_EN2
Definition: config_a3ides2209_02.h:60
#define ST7789V_PIN_CS
Definition: config_a3ides2209_02.h:53
#define GPIO_MODE_INPUT
Definition: stm32f4xx_hal_gpio.h:135
void render_icon_align(rect_ui16_t rc, uint16_t id_res, color_t clr0, uint16_t flags)
Definition: display_helper.c:55
#define ST7789V_PIN_RST
Definition: config_a3ides2209_02.h:55
#define GPIO_SPEED_FREQ_LOW
Definition: stm32f4xx_hal_gpio.h:158
st7789v_config_t st7789v_config
Definition: st7789v.c:905