2019年7月30日 星期二

Webusb test










External library from
https://github.com/webusb/arduino





2019年7月16日 星期二

2019年7月14日 星期日

A javascript analog of python's range

var range=(a,b,c)=>
  {
    if(!b) b=1;
    if(!c) c=1;
    let arr=new Array(Math.floor(Math.abs(a-b)/c)+1).fill(0);
    arr=arr.map((i,ind)=>(ind*(b-a)/(arr.length-1)+a));
    return arr;
  };