Prusa MINI Firmware overview
|
#include "gui.h"
#include "config.h"
#include "version.h"
#include "window_logo.h"
#include "wizard/wizard.h"
#include "eeprom.h"
#include "stm32f4xx_hal.h"
◆ _psd
◆ screen_splash_timer()
void screen_splash_timer |
( |
screen_t * |
screen, |
|
|
uint32_t |
mseconds |
|
) |
| |
129 float percent = mseconds / 3000.0 * 100;
◆ screen_splash_init()
59 &(
_psd->logo_prusa_mini));
62 &(
_psd->text_progress));
72 _psd->progress.height_progress = 15;
75 &(
_psd->icon_logo_marlin));
79 &(
_psd->text_version));
◆ screen_splash_done()
◆ screen_splash_draw()
◆ screen_splash_event()
100 uint8_t run_wizard = (run_selftest && run_xyzcalib && run_firstlay) ? 1 : 0;
101 if ((run_wizard || run_firstlay)) {
105 }
else if (run_firstlay) {
◆ pscreen_test
◆ screen_splash
◆ pscreen_splash
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
void screen_splash_init(screen_t *screen)
Definition: screen_splash.c:51
#define MARLIN_EVT_Startup
Definition: marlin_events.h:8
#define ALIGN_CENTER_BOTTOM
Definition: guitypes.h:27
int marlin_event(uint8_t evt_id)
Definition: marlin_client.c:232
void wizard_run_complete(void)
Definition: wizard.c:54
variant8_t eeprom_get_var(uint8_t id)
Definition: eeprom.c:75
#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
uint8_t ui8
Definition: variant8.h:36
#define _psd
Definition: screen_splash.c:47
void window_destroy(int16_t id)
Definition: window.c:132
#define IDR_FNT_NORMAL
Definition: resource.h:10
#define EEVAR_RUN_FIRSTLAY
Definition: eeprom.h:16
#define MSGBOX_ICO_WARNING
Definition: window_msgbox.h:35
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
int screen_splash_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_splash.c:91
screen_t * pscreen_test
Definition: screen_test.c:157
void screen_open(int16_t screen_id)
Definition: screen.c:62
int16_t WINDOW_CLS_LOGO
Definition: window_logo.c:11
const screen_t * pscreen_marlin
Definition: screen_marlin.c:33
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
void screen_close(void)
Definition: screen.c:80
#define COLOR_GRAY
Definition: guitypes.h:50
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
#define EEVAR_RUN_XYZCALIB
Definition: eeprom.h:15
#define COLOR_ORANGE
Definition: guitypes.h:57
#define EEVAR_RUN_SELFTEST
Definition: eeprom.h:14
#define WINDOW_CLS_PROGRESS
Definition: window.h:20
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
void wizard_run_firstlay(void)
Definition: wizard.c:84
#define WINDOW_CLS_FRAME
Definition: window.h:9
void window_set_value(int16_t id, float value)
Definition: window.c:363
void screen_stack_push(int16_t screen_id)
Definition: screen.c:48
const uint8_t[]
Definition: 404_html.c:3
#define IDR_FNT_BIG
Definition: resource.h:11
#define WINDOW_CLS_ICON
Definition: window.h:12
void screen_splash_timer(screen_t *screen, uint32_t mseconds)
Definition: screen_splash.c:128
#define WINDOW_CLS_TEXT
Definition: window.h:10
screen_t * pscreen_home
Definition: screen_home.cpp:278
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
void screen_splash_draw(screen_t *screen)
Definition: screen_splash.c:88
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
void screen_splash_done(screen_t *screen)
Definition: screen_splash.c:84
int16_t id
Definition: screen.h:19
#define IDR_PNG_splash_logo_marlin
Definition: resource.h:17
const char version_version[]
semantic version (https://semver.org) is Prusa3D standard
Definition: version.c:31
Definition: screen_splash.c:30