You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • That's a very odd one. Please could you post this in a new thread and let me know which board you're using?

    If you delete SPI1.setup({ baud: 1000000, sck:A5, mosi:A7 }); and then use this code:

     // Setup SPI
      var spi = new SPI();
      spi.setup({ baud: 1000000, sck:A5, mosi:A7 });
      // Initialise the LCD
      g = require("PCD8544").connect(spi,A6,B0,B1,­ function() {
    

    In your onInit function I imagine it'll fix it though.

  • maybe stupid question, but how do I start a new thread? :-)

  • I get another error now:

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v05 (c) 2019 G.Williams
    >
    Uncaught Error: No vector font in this build
     at line 24 col 21
      g.setFontVector(20);
                        ^
    in function called from system
    Uncaught Error: No vector font in this build
     at line 24 col 21
      g.setFontVector(20);
                        ^
    in function called from system
    Uncaught Error: No vector font in this build
     at line 24 col 21
      g.setFontVector(20);
                        ^
    in function called from system
    Uncaught Error: No vector font in this build
     at line 24 col 21
      g.setFontVector(20);
                        ^
    in function called from system
    Uncaught Error: No vector font in this build
     at line 24 col 21
      g.setFontVector(20);
                        ^
    

    The board I'm using is an Espruino Rev. 1.3b

About

Avatar for Gordon @Gordon started