1 2 3 4 5 6 7 8 9 10 11 12 13
#include "../regs/regs.h" #include "../usb/calculator.h" #include <ion.h> void ion_main(int argc, char * argv[]) { Ion::Display::pushRectUniform(KDRect(0,0,Ion::Display::Width,Ion::Display::Height), KDColor::RGB24(0xFFFF00)); while (true) { Ion::USB::enable(); while (!Ion::USB::isEnumerated()) { } Ion::USB::Device::Calculator::PollAndReset(false); } }