Example #1
0
def kbd_work():
	while 1:
		if py8042.more_chars():
			ch = keyb.translate_scancode(py8042.get_scancode())
			if ch:
				stack.swap(ch)
		else:
			stack.swap(None, idl_task)
Example #2
0
def kbd_isr():
	while py8042.more_chars():
	    ch = keyb.translate_scancode(py8042.get_scancode())
	    if ch:
		prch(ch, '\015')
Example #3
0
def kbd_isr():
    ch = keyb.translate_scancode(py8042.get_scancode())
    if ch:
        global bufchar
        bufchar = ch
Example #4
0
def kbd_isr():
	ch = keyb.translate_scancode(py8042.get_scancode())
	if ch:
		global bufchar
		bufchar = ch
Example #5
0
def kbd_isr():
    while py8042.more_chars():
        ch = keyb.translate_scancode(py8042.get_scancode())
        if ch:
            prch(ch, '\015')