Esempio n. 1
0
def splashup():
	pyvga.exittext()
	pyvga.framebuffer[:0xFA00] = pyvga.splashscreen[:0xFA00]
	pyvga.cleartext()
Esempio n. 2
0
################################################################################
import pyvga
import blit
import buf

ss = buf.sym('sokoscreen')
pyvga.exittext()
pyvga.framebuffer[:len(ss)] = ss

# blit.fill(pyvga.framebuffer,320,0,0,320,200,0)
################################################################################
import isr
import py8042
import keyb

bufchar = None

def kbd_isr():
	ch = keyb.translate_scancode(py8042.get_scancode())
	if ch:
		global bufchar
		bufchar = ch

dir = None
def clk_isr():
	global bufchar
	global dir

	blit.fill(pyvga.framebuffer, 320, 312, 0, 8, 8, (isr.ticker & 15) + 16)

	if py8042.more_squeaks():
Esempio n. 3
0
################################################################################
import pyvga
import blit
import buf

ss = buf.sym('sokoscreen')
pyvga.exittext()
pyvga.framebuffer[:len(ss)] = ss

# blit.fill(pyvga.framebuffer,320,0,0,320,200,0)
################################################################################
import isr
import py8042
import keyb

bufchar = None


def kbd_isr():
    ch = keyb.translate_scancode(py8042.get_scancode())
    if ch:
        global bufchar
        bufchar = ch


dir = None


def clk_isr():
    global bufchar
    global dir
Esempio n. 4
0
def splashup():
    pyvga.exittext()
    pyvga.framebuffer[:0xFA00] = pyvga.splashscreen[:0xFA00]
    pyvga.cleartext()