mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[bootloader] Added bootloader
This commit is contained in:
6
bootloader/Makefile
Normal file
6
bootloader/Makefile
Normal 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
15
bootloader/main.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user