예제 #1
0
파일: monkey.py 프로젝트: thompson42/cleese
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)
예제 #2
0
def kbd_isr():
	while py8042.more_chars():
	    ch = keyb.translate_scancode(py8042.get_scancode())
	    if ch:
		prch(ch, '\015')
예제 #3
0
def kbd_isr():
    while py8042.more_chars():
        ch = keyb.translate_scancode(py8042.get_scancode())
        if ch:
            prch(ch, '\015')