You are reading a single comment by @Alexandr and its replies. Click here to read the full conversation.
  • Good day, everyone! I have a problem with module ILI9341. I'm plugging it in on esp12F. After loading and cleaning the screen appears, after which the esp is rebooted and so on. Please help if anyone knows what the problem is.

    var ESP8266 = require("ESP8266"),
         wifi = require("Wifi");
    function onInit() {
      wifi.stopAP();
       wifi.connect("INGRIFABSR", {password: "B73vFeX6se2"}, function(err) { // 192.168.99.61
           if(err)console.log(err);else {
            print("connected! "+wifi.getIP().ip);
    var SPI1 = new SPI();
        SPI1.setup({ sck:D14, miso:D12, mosi:D13 ,baud: 1000000});
    var g = require("ILI9341").connect(SPI1, D5, D15, D4, function() {
      g.clear();
      g.drawString("Hello",50,50);
    //  g.setFontVector(20);
    //  g.setColor(1,0.5,1);
    //  g.drawString("Espruino",0,10);
    });
         }
       });
    }
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v00 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:1024/1024, manuf 0xef chip 0x4016
    >
    >save()
    =undefined
    Compacting Flash...
    Calculating Size...
    Writing..
    ComRunning onInit()...
    connected! 192.168.99.106
    >
     ets Jan  8 2013,rst cause:2, boot mode:(3,5)
    load 0x40100000, len 2408, room 16
    tail 8
    chksum 0xe5
    load 0x3ffe8000, len 776, room 0
    tail 8
    chksum 0x84
    load 0x3ffe8310, len 632, room 0
    tail 8
    chksum 0xd8
    csum 0xd8
    2nd boot version : 1.6
      SPI Speed      : 40MHz
      SPI Mode       : DIO
      SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
    jump to run user1 @ 1000
    
About

Avatar for Alexandr @Alexandr started