[bootloader] Added bootloader

This commit is contained in:
M4x1m3
2022-02-25 16:17:38 +01:00
parent c635f4e2b9
commit 272797f31f
4 changed files with 27 additions and 1 deletions

6
bootloader/Makefile Normal file
View File

@@ -0,0 +1,6 @@
bootloader_src += $(addprefix bootloader/,\
main.cpp \
)
bootloader_src += $(ion_src) $(kandinsky_src) $(liba_src) $(libaxx_src)

15
bootloader/main.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <ion/backlight.h>
#include <ion/display.h>
#include <ion/timing.h>
void ion_main(int argc, const char * const argv[]) {
// Initialize the backlight
Ion::Backlight::init();
while (1) {
Ion::Display::pushRectUniform(KDRect(0,0,10,10), KDColorRed);
Ion::Timing::msleep(100);
Ion::Display::pushRectUniform(KDRect(0,0,10,10), KDColorBlue);
Ion::Timing::msleep(100);
}
}