Enjoy programming more!
Kidspod is a post site which supports young programmers.
First step to join us.
Register as a member
For members

2018/09/26 16:42:26

MixJuice GET URL : kidspod.club/mj/628

FILES-Jam BASIC EEPROM(Latte)

詳細は イチゴジャム レシピ で公開しています。
「プログラムをみる」を参照して下さい。

SOURCE CODE

//FILES IchigoJam BASIC

var k,a,p=100,r,d=0,b=0,h=0,l;
var m=0;

log("files>");
k=input();

if(k==0)
{
  k=227;
}

while(p<=k)
{
  a=0x50+b*0x04;
  l=3;

  log(p," ");

  while(l<30)
  {
    i2cw(a,h,l);
    i2cr(a,r);

    if((l==3)*(r==255))
    {
      break;
    }

    if((r==0)+(r==10))
    {
      break;
    }

    log(chr(r));

    l=l+1;
  }
  log("\n");

  p=p+1;
  d=d+1024;

  l=d%256;
  h=(d/256)%65536;
  b=d/65536;

  m=m+1;

  if(m==23)
  {
    log("more>");
    m=input();
    m=0;
  }
}

COMMENT