Skip to content
Snippets Groups Projects
Select Git revision
  • f95edfc6760c835991de822249ac78514b820207
  • main default protected
  • phhw
  • captouch-threshold
  • t
  • dos
  • test2
  • test
  • slewtest
  • simtest
  • view-think
  • vm-pending
  • media-buf
  • scope
  • passthrough
  • wave
  • vsync
  • dos-main-patch-50543
  • json-error
  • rahix/big-flow3r
  • pippin/media_framework
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
34 results

overlays.py

Blame
  • Forked from flow3r / flow3r firmware
    Source project has a limited visibility.
    bootloader-display.c 1.02 KiB
    #include "bootloader.h"
    /* Autogenerated */
    #include "splash-screen.h"
    #include "card10-version.h"
    
    #include "gfx.h"
    #include "display.h"
    
    static void bootloader_display_splash(void)
    {
    	gfx_copy_region(
    		&display_screen,
    		0,
    		0,
    		160,
    		80,
    		GFX_RLE_MONO,
    		sizeof(splash),
    		(const void *)(splash)
    	);
    	gfx_update(&display_screen);
    }
    
    /*
     * Initialize the display.
     */
    void bootloader_display_init(void)
    {
    	bootloader_display_splash();
    }
    
    /*
     * Show the bootloader version on the display.
     */
    void bootloader_display_header(void)
    {
    	gfx_clear(&display_screen);
    
    	Color white = gfx_color(&display_screen, WHITE);
    	bootloader_display_line(0, "Bootloader", white);
    	bootloader_display_line(1, __DATE__, white);
    	bootloader_display_line(2, CARD10_VERSION, white);
    }
    
    /*
     * Display a line of text on the display.
     */
    void bootloader_display_line(int line, char *string, uint16_t color)
    {
    	Color black = gfx_color(&display_screen, BLACK);
    	gfx_puts(&Font16, &display_screen, 0, 16 * line, string, color, black);
    	gfx_update(&display_screen);
    }