Navigation

    obniz Developer's Community Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. wami
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    wami

    @wami

    0
    Reputation
    5
    Posts
    278
    Profile views
    2
    Followers
    0
    Following
    Joined Last Online

    wami Follow

    Best posts made by wami

    This user hasn't posted anything yet.

    Latest posts made by wami

    • RE: 非公開のSSIDに接続するには

      obnizOS 3.2.0以降でサポートいたしました。

      設定方法は下記のリンクをご覧ください。

      https://qiita.com/wamisnet/items/3b91b6bedc77ac7d0e1c

      posted in Beginner Questions/Discussion
      wami
      wami
    • RE: マトリクスLEDの8列目が1列目に表示されてしまう

      質問していただきありがとうございます。

      上記の問題ですが、選択すべきパーツを現在のMatrixLED_HT16K33からKeyestudio_HT16K33に変更していただけるときちんと動作します。

      文字を流したいという要件については、下記の回答にプログラムの方添付させていただいているのでそちらを参照していただけると幸いです。

      https://forum.obniz.io/topic/382/obniz-starter-kit-の-ledマトリクス-のプログラム

      posted in Beginner Questions/Discussion
      wami
      wami
    • RE: Obniz Starter Kit の LEDマトリクス のプログラム

      StaterKitを購入していただきありがとうございました。
      質問の内容ですが、文字を流すサンプルプログラム添付しておきますので試していただけると幸いです。

      <html>
      <head>
      	<script src="https://unpkg.com/obniz@3.5.0/obniz.js"></script>
      </head>
      
      <body>
      	<div id="Keyestudio_HT16K33"></div>
      	<script>
      		var obniz = new Obniz("72618310");
          obniz.onconnect = async function () {
          const matrix = obniz.wired("Keyestudio_HT16K33", { vcc:0, gnd:1, sda:2, scl:3 });
            matrix.init(8);
            matrix.brightness(7);
            const ctx = obniz.util.createCanvasContext(matrix.width, matrix.height);
            const text = "Hello World"
            const width = ctx.measureText( text ).width ;
            while(true){
              for(let i = 0;i<width+matrix.width;i++){
                ctx.fillStyle = "black";
                ctx.fillRect(0, 0, matrix.width, matrix.height);
                ctx.fillStyle = "white";
                ctx.font = "10px sans-serif";
                ctx.fillText(text,matrix.width-i , 8);
      
                matrix.draw(ctx);
                await obniz.wait(100);
              }
            }
          }
      	</script>
      </body>
      
      </html>
      
      posted in Beginner Questions/Discussion
      wami
      wami
    • RE: M5Stick-C obnizでDHT12 エラー

      すみません、反応が遅くなりましたが、下記のコードでこちら側で動作確認しております。
      (obniz.jsにM5Stickc.jsの機能を内包したため、obniz.jsを使用したときの例になっております。)

      let m5stickC = new Obniz.M5StickC("OBNIZ_ID_HERE");
      m5stickC.onconnect = async function () {
        let device = m5stickC.wired("DHT12",{scl:26,sda:0});
        let data = await device.getAllDataWait();
        console.log(data);
      }
      

      https://codesandbox.io/s/m5stickcosanddht12-0d4bw

      試していただけると幸いです。お手数をおかけしますが、よろしくお願いいたします。

      posted in Question and Troubles
      wami
      wami