34 lines
793 B
C
34 lines
793 B
C
#pragma once
|
|
/*
|
|
* (c) Copyright 2018 by Coinkite Inc. This file is covered by license found in COPYING-CC.
|
|
*/
|
|
#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
|