mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-02 14:46:16 -04:00
Updated start sequence, added boot graphics
This commit is contained in:
parent
8e64bc2aa6
commit
21e040eb97
6 changed files with 155 additions and 124 deletions
14
Utilities.h
14
Utilities.h
|
@ -66,6 +66,20 @@ uint8_t boot_vector = 0x00;
|
|||
pixels.show();
|
||||
}
|
||||
}
|
||||
|
||||
void boot_seq() {
|
||||
uint8_t rs[] = { 0x00, 0x00, 0x00 };
|
||||
uint8_t gs[] = { 0x10, 0x08, 0x00 };
|
||||
uint8_t bs[] = { 0x00, 0x08, 0x10 };
|
||||
for (int i = 0; i < 1*sizeof(rs); i++) {
|
||||
npset(rs[i%sizeof(rs)], gs[i%sizeof(gs)], bs[i%sizeof(bs)]);
|
||||
delay(33);
|
||||
npset(0x00, 0x00, 0x00);
|
||||
delay(66);
|
||||
}
|
||||
}
|
||||
#else
|
||||
void boot_seq() { }
|
||||
#endif
|
||||
|
||||
#if MCU_VARIANT == MCU_1284P || MCU_VARIANT == MCU_2560
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue