firmware/stm32/bootloader/oled.h
2019-07-26 11:23:45 -04:00

35 lines
844 B
C

#pragma once
/*
* (c) Copyright 2018 by Coinkite Inc. This file is part of Coldcard <coldcardwallet.com>
* and is covered by GPLv3 license found in COPYING.
*/
#include "basics.h"
// need this many bytes for any update
#define OLED_DRAW_SIZE 1024
extern void oled_setup(void);
// send a pre-compressed image to screen (complete)
extern void oled_show(const uint8_t *pixels);
// .. same but add a progress bar
extern void oled_show_progress(const uint8_t *pixels, int percent);
// send some bytes to screen
extern void oled_show_raw(uint32_t len, const uint8_t *pixels);
// delay loop
void sleep_ms(int n);
// show animated busy bar
void oled_busy_bar(bool en);
// show just a progress bar in bottom 8 rows (destructive)
void oled_draw_bar(int percent);
// just fun display in factory case
void oled_factory_busy(void);
// EOF