You are reading a single comment by @Mrbbp and its replies. Click here to read the full conversation.
  • with the fabulous help of @Gordon
    there is an example code for working with alfazeta 7x7 flipdots panel (around 80€ + shipping)

    /* 5 wires used on pin A8, B7, B6 + a RS485 module
    B6 -> DI from RS485 module
    B7 -> DE, RE pins
    A8 -> RO pin
    + GND
    + 5v
    */
    var TX_ENABLE_PIN = A8;
    var TX_PIN = B6;
    var cpt=0;
    
    var g = Graphics.createArrayBuffer(8,7,1);
    var text = "I love Espruino";
    
    function sendData() {
      if (cpt < -g.stringWidth(text))
        cpt = 7;
      g = Graphics.createArrayBuffer(8,7,1);
      g.setFontDennis8();
      g.drawString(text,cpt,0);
      Serial1.write([0x80,0x87,0xFF],g.buffer,­[0x8F]);
      cpt--;
    }
    
    function onInit() {
      require("FontDennis8").add(Graphics);
      Serial1.setup(9600,{tx:TX_PIN});
      digitalWrite(TX_ENABLE_PIN, 1);
      setInterval(sendData, 150);
    }
    

    and a video demo of code

About

Avatar for Mrbbp @Mrbbp started