// EEPROM File : exist(@no) // return : 0=none, 1=exist function exist(no){ var adrs=no*2048; var n, d=0x50|(((adrs>>16)&1)<<2); i2cw(d,(adrs&0xff00)>>8,adrs&255); i2cr(d,n); if(n==0){ return 0; } return 1; } log("input @number\n"); var s=input(); var f=exist(s); if(f==0){ log("Not exist @",s,"\n"); }else{ log("Exist @",s,"\n"); }