shithub: binrc

ref: 5cb4b786139c7e3ad5df18d5d7edc56634d111a0
dir: /olenda/

View raw version
#!/bin/rc


# x0 = inc x0 i 
fn inc {
	echo $1^'+'^$2 | bc 
}

# 126 x 32 oled
while(){
	i = 10
	x0 = 20
	y0 = 0
	x1 = 146
	y1 = 32

	for(nothing in `{seq 14}){
		crop -r $x0 $y0 $x1 $y1 < /lib/bunny.bit | iconv -u > /mnt/reform/kbdoled
		#x0 = `{inc $x0 $i}
		y0 = `{inc $y0 $i}
		#x1 = `{inc $x1 $i}
		y1 = `{inc $y1 $i}
		sleep 0.1
	}
}