clear all
len = 64;    % poèt vzorkù v prùbìhu
n=linspace(0,(1-1/len)*2*pi,len);
x=(1+sin(n));
t=max(x);
x=round(x/t*255);
%plot(n,x);
printf("\n const uint8_t sine[%u]={\n",len);
for i=1:1:len
  printf("%u",x(i));
  if(i<len)
printf(",")
endif
  if(mod(i,8)==0)
  printf("\n");
endif

  endfor
printf("};\n")