Last active
December 4, 2019 04:11
-
-
Save fu-sen/e00ec43c196201ba29e3f07b04a030ff to your computer and use it in GitHub Desktop.
IchigoLatte PanCake ライブラリ https://15jamrecipe.jimdofree.com/pancake/%E4%BD%BF%E3%81%84%E6%96%B9/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IchigoLatte PanCake library | |
// CC0 1.0 Public Domain Dedication - https://creativecommons.org/publicdomain/zero/1.0/ | |
function pc-init(){ | |
uart(10); | |
} | |
function pc-clear(cn){ | |
uart(128,4,0,cn); | |
} | |
function pc-line(x1,y1,x2,y2,cn){ | |
uart(128,8,1,x1,y1,x2,y2,cn); | |
} | |
function pc-circle(xc,yc,ra,cn){ | |
uart(128,7,14,xc,yc,ra,cn); | |
} | |
// fs and ca are required | |
function pc-stamps(px,py,si,fs,ra){ | |
uart(128,8,20,px,py,si,fs,ra); | |
} | |
function pc-image(in){ | |
uart(128,4,4,in); | |
} | |
function pc-video(os){ | |
uart(128,4,5,os); | |
} | |
function pc-sStart(in){ | |
uart(128,4,6,in); | |
} | |
function pc-sCreate(sn,si){ | |
uart(128,5,7,sn,si); | |
} | |
function pc-sMove(sn,px,py){ | |
uart(128,6,8,sn,px,py); | |
} | |
function pc-sFlip(sn,fs){ | |
uart(128,5,16,sn,fs); | |
} | |
function pc-sound(o0,s0,o1,s1,o2,s2,o3,s3){ | |
uart(128,11,9,o0,s0,o1,s1,o2,s2,o3,s3); | |
} | |
function pc-sound1(cn,on,sn){ | |
uart(128,6,10,cn,on,sn); | |
} | |
// If ch>=4, all channels is sounded | |
function pc-mPlay(ss,ch){ | |
if(ch<4) { | |
uart(128,5,12,ss,ch); | |
} else { | |
uart(128,4,12,ss); | |
} | |
} | |
function pc-mLoad(ch,mn){ | |
uart(128,8,21,ch,mn); | |
} | |
function pc-reset(){ | |
uart(128,3,13); | |
} | |
function pc-out(pf){ | |
uart(128,4,15,pf); | |
} | |
function pc-bps(rrrr){ | |
uart(128,4,19,rrrr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment