// EEPROM File : fill(@no,value) function fill(no,val){ var adrs=no*2048; var count=0, n; while(count<2047){ i2cw(0x50|(((adrs>>16)&1)<<2), (adrs&0xff00)>>8,adrs&0xff, val); sleep(10); adrs=adrs+1; count=count+1; } i2cw(0x50|(((adrs>>16)&1)<<2), (adrs&0xff00)>>8,adrs&0xff, 0); } log("input @number\n"); var s=input(); log("input value\n"); var v=input(); fill(s,v);