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

2019/04/19 21:31:49

MixJuice GET URL : kidspod.club/mj/798

FILES-Cake BASIC EEPROM (Latte)

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

SOURCE CODE

//FILES IchigoCake 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=131;
}

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+4096;

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

  m=m+1;

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

COMMENT