forked from Mirrors/usk
optimizations and color changes
This commit is contained in:
parent
5944a49783
commit
9c5df5cac9
4 changed files with 1886 additions and 5 deletions
2
config.h
2
config.h
|
|
@ -1,7 +1,7 @@
|
|||
#include "hardware/flash.h"
|
||||
#define OFFSET_DIV 8
|
||||
#define OFFSET_MIN 6200
|
||||
#define OFFSET_MAX 6900
|
||||
#define OFFSET_MAX 6975
|
||||
|
||||
#define VER_HI 2
|
||||
#define VER_LO 76
|
||||
|
|
|
|||
2
main.c
2
main.c
|
|
@ -106,7 +106,7 @@ int main()
|
|||
// test pins
|
||||
self_test();
|
||||
// wait till the CPU has proper power & started reading the eMMC
|
||||
wait_for_boot(2500);
|
||||
wait_for_boot(2475);
|
||||
// ensure the BCT has not been overwritten by system update
|
||||
bool force_check = fast_check();
|
||||
was_self_reset = force_button || !is_configured(cid_buf + 1);
|
||||
|
|
|
|||
6
misc.h
6
misc.h
|
|
@ -1,8 +1,8 @@
|
|||
#define PIX_gre 0x8000ff
|
||||
#define PIX_gre 0x00ff00
|
||||
#define PIX_red 0xc90000
|
||||
#define PIX_whi 0x00ffff
|
||||
#define PIX_whi 0xff00ff
|
||||
|
||||
#define PIX_g 0xff0080
|
||||
#define PIX_g 0x00ff80
|
||||
|
||||
void put_pixel(uint32_t pixel_grb);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue