Numworks Epsilon
1.4.1
Graphing Calculator Operating System
flasher.cpp
Go to the documentation of this file.
1
#include "../regs/regs.h"
2
#include "../usb/calculator.h"
3
#include <
ion.h
>
4
5
void
ion_main
(
int
argc,
char
* argv[]) {
6
Ion::Display::pushRectUniform
(
KDRect
(0,0,
Ion::Display::Width
,
Ion::Display::Height
),
KDColor::RGB24
(0xFFFF00));
7
while
(
true
) {
8
Ion::USB::enable
();
9
while
(!
Ion::USB::isEnumerated
()) {
10
}
11
Ion::USB::Device::Calculator::PollAndReset
(
false
);
12
}
13
}
ion.h
Ion::Display::Width
constexpr int Width
Definition:
display.h:26
Ion::USB::enable
void enable()
Definition:
usb.cpp:27
Ion::USB::isEnumerated
bool isEnumerated()
Definition:
usb.cpp:16
KDRect
Definition:
rect.h:26
ion_main
void ion_main(int argc, char *argv[])
Definition:
flasher.cpp:5
Ion::USB::Device::Calculator::PollAndReset
static void PollAndReset(bool exitWithKeyboard)
Definition:
calculator.cpp:11
Ion::Display::pushRectUniform
void pushRectUniform(KDRect r, KDColor c)
Definition:
display.cpp:20
Ion::Display::Height
constexpr int Height
Definition:
display.h:27
KDColor::RGB24
static constexpr KDColor RGB24(uint32_t rgb)
Definition:
color.h:13
epsilon
ion
src
device
usb
flasher.cpp
Generated by
1.8.14