Numworks Epsilon
1.4.1
Graphing Calculator Operating System
helpers.cpp
Go to the documentation of this file.
1
#include "
helpers.h
"
2
#include <
ion.h
>
3
extern
"C"
{
4
#include "
mphalport.h
"
5
}
6
7
void
micropython_port_should_interrupt
() {
8
static
int
c
= 0;
9
c
++;
10
if
(
c
%20000 != 0) {
11
return
;
12
}
13
c
= 0;
14
Ion::Keyboard::State
scan
=
Ion::Keyboard::scan
();
15
if
(
scan
.
keyDown
((
Ion::Keyboard::Key
)
mp_interrupt_char
)) {
16
mp_keyboard_interrupt
();
17
}
18
}
19
mp_keyboard_interrupt
void mp_keyboard_interrupt(void)
ion.h
helpers.h
Ion::Keyboard::Key
Key
Definition:
keyboard.h:12
c
c(generic_all_nodes)
Ion::Keyboard::State::keyDown
bool keyDown(Key k) const
Definition:
keyboard.h:47
mp_interrupt_char
int mp_interrupt_char
mphalport.h
Ion::Keyboard::scan
State scan()
Definition:
keyboard.cpp:50
micropython_port_should_interrupt
void micropython_port_should_interrupt()
Definition:
helpers.cpp:7
Ion::Keyboard::State
Definition:
keyboard.h:36
epsilon
python
port
helpers.cpp
Generated by
1.8.14