optimizations and color changes part 2

This commit is contained in:
DefenderOfHyrule 2024-07-11 11:52:57 +02:00
parent 9c5df5cac9
commit 00db7faca3
3 changed files with 5 additions and 5 deletions

View file

@ -1,10 +1,10 @@
#include "hardware/flash.h" #include "hardware/flash.h"
#define OFFSET_DIV 8 #define OFFSET_DIV 8
#define OFFSET_MIN 6200 #define OFFSET_MIN 6200
#define OFFSET_MAX 6975 #define OFFSET_MAX 6950
#define VER_HI 2 #define VER_HI 2
#define VER_LO 76 #define VER_LO 77
bool is_configured(); bool is_configured();
void init_config(); void init_config();

2
main.c
View file

@ -106,7 +106,7 @@ int main()
// test pins // test pins
self_test(); self_test();
// wait till the CPU has proper power & started reading the eMMC // wait till the CPU has proper power & started reading the eMMC
wait_for_boot(2475); wait_for_boot(2490);
// ensure the BCT has not been overwritten by system update // ensure the BCT has not been overwritten by system update
bool force_check = fast_check(); bool force_check = fast_check();
was_self_reset = force_button || !is_configured(cid_buf + 1); was_self_reset = force_button || !is_configured(cid_buf + 1);

4
misc.h
View file

@ -1,8 +1,8 @@
#define PIX_gre 0x00ff00 #define PIX_gre 0x00ff00
#define PIX_red 0xc90000 #define PIX_red 0xc90000
#define PIX_whi 0xff00ff #define PIX_whi 0x8000ff
#define PIX_g 0x00ff80 #define PIX_g 0x73e600
void put_pixel(uint32_t pixel_grb); void put_pixel(uint32_t pixel_grb);