制作一个自动远程更新的RGB万年历

写在前面 今年一月份整理元件箱的时候发现了一个8位RGB灯条,想起网上前段时间流行的 WIFI 像素时钟:LaMetric 正好可以巩固一下曾经写代码的快乐时光,开搞!!手上的灯珠比较大,当时也没有仔细考虑工业设计,就打算做个能用的就行。 下面做...

作品

本站由 子书承宇 使用 Stellar 1.28.1 主题创建。本站总访问量
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。

载入天数... 载入时分秒...
r" stroke-linecap="round" stroke-width="2">')},onLoadSuccess:e=>{e&&$(e).find(".loading-wrap").remove()},onLoadFailure:e=>{e&&($(e).find(".loading-wrap svg").remove(),$(e).find(".loading-wrap").append(''),$(e).find(".loading-wrap").addClass("error"))},request:(n,s,i,d)=>{let l=3;utils.onLoading(n),function a(){new Promise((t,e)=>{let r=0,o=setTimeout(()=>{0===r&&(r=2,o=null,e("请求超时"),0==l)&&d()},5e3);fetch(s).then(function(e){if(2!==r&&(clearTimeout(o),t(e),o=null,r=1),e.ok)return e.json();throw new Error("Network response was not ok.")}).then(function(e){l=0,utils.onLoadSuccess(n),i(e)}).catch(function(e){0{a()},5e3)):(utils.onLoadFailure(n),d())})})}()}}