A HY Mini-STM32 VCT6 3.2" board

Posted on
Page
of 3
Prev
/ 3
Next
  • When using JS module code, you need to enter the first require(...) for a given module (after each reset, assuming you haven't save()'ed after loading the module) on the right side of the window, that way the WebIDE knows to go get that module and send it to the Espruino.

    If you send code using a module from the right side of the IDE, and then press up arrow a few times to see command history, you can see where it sends over the minified module code.

  • whats the module name for mine?

  • Can you explain it more simply?

  • You were typing the right thing, but when you're calling a module (at least for the first time after reset, unless you've saved it with the module), you need to type it into the RIGHT HAND SIDE of the WebIDE, and then click "Send to Espruino" in the middle.

    If you put the exact same code in, but on the right side and click "send to Espruino" it will work.

    When you type in left side, that goes directly to the Espruino.

    When you type in right side, and then do send to Espruino, that gets processed by the WebIDE, which downloads the modules and sends them to the Espruino, along with your code.

  • ERROR: Could not open file : NO_PATH
    WARNING: Module "Touchscreen" not found
    =undefined
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
    at line 3 col 25
    require("Touchscreen").connect(touchCallback);

                         ^
    

    in function "onInit" called from line 1 col 8
    onInit();

        ^
    

    reset();
    =undefined
    Unknown LCD code 35208 35209


    | |_ ___ ___ _ ||___ ___
    | |_ -| . | _| | | | | . |
    |
    || || |_|||_|_|

          |_| http://espruino.com
    

    1v72 Copyright 2015 G.Williams
    echo(0);
    =undefined

    How do i get rid of it then? And also when i hook the leds up the screen goes blank? What do i need to do?

  • Can you please describe what you are doing that causes that message to appear, including any code, and how you send that code to the espruino?

    I assumed you were typing something like "require("Touchscreen").... " in the left side of the webIDE, but it sounds like that's not the case, in which case, please explain what you're doing that triggers that error.

    Also, someone who has the HY STM32 board might be helpful here too - I have not used that one, so if there's something weird about how the HY STM32 boards specifically work, I don't knwo it.

  • All i do is copy the code from the project 2 page and paste it in and then press send to espruino.

  • What am i doing wrong?

  • Are you using the Web IDE to upload code? If you're just pasting in in via Putty/Minicom then you'll have trouble.

  • Yes. I use the Web ide.

  • Have you blocked the Web IDE from accessing the internet somehow, or changed the 'Module URL' in settings? I've just tried here and it works fine.

    As far as I can see, the only way you'd get that message is if the Web IDE couldn't get the 'Touchscreen' module off the internet.

  • this is what i get when i send require() in right and press send. I havent change anything in settings . under where it says url to find modules it has http://www.espruino.com/modules.

  • Now im getting this

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v71 Copyright 2014 G.Williams
    >
    =undefined
    >reset();
    =undefined
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v71 Copyright 2014 G.Williams
    >echo(0);
    WARNING: Unable to set watch on pin. You may already have a watch on a pin with the same number.
    Uncaught SyntaxError: Got '}' expected EOF
     at line 1 col 675
    ...{repeat:!1,edge:"falling"})}
                                   ^
    ERROR: Could not open file : NO_PATH
    WARNING: Module "ADS7843" not found
    =undefined
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 1 col 325
    ...osi:A7}),require("ADS7843").connect(SPI1,A4,B6,-16,-16,352,2...
                                   ^
    in function "connect" called from line 3 col 47
      require("Touchscreen").connect(touchCallback);
                                                   ^
    > 
    
  • The screen has the things i need on it but touch doesnt work.

  • Update firmware to v72 to fix the issue with setting watches (as well as OODLES of other bugs - v71 -> v72 is a major update).

    I'm still not sure why you're getting the error about ADS7843 module not being found - The WebIDE should have noticed that it needs the ADS7843 module, and automatically fetched it and loaded it with the board - but it looks like it didn't do that. Did any error messages appear when you sent the code (they pop up in colored boxes near the lower right that only stay for a few seconds, so it's hard to see what they say, but that's where it displays errors about not being able to get modules).

  • I also get

    Connected
    >
    =undefined
    >
    =undefined
    >
    

    when i connect

  • I did update it also.

  • The =undefined is normal and correct, but often surprising to someone coming to Espruino from an embedded background, vs a JS background. When using a JS console, everything you send gets evaluated. A blank line evaluates to undefined, so that gets echoed back to you.

    If you have updated it, it should be showing different messages, I would think. Can you post the results of sending the same code with v72?

  • Also, could you try sending code from the other USB port? You might be using the one you used to flash the firmware, which is much slower. Not sure if it'd help but it might be worth a try.

  • Connected
    >                     ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    >
    =undefined
    >
    =undefined
    >
    =undefined
    >reset();
    =undefined
    Unknown LCD code 35208 35209
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v72 Copyright 2015 G.Williams
    >echo(0);
    ERROR: Could not open file : NO_PATH
    WARNING: Module "ADS7843" not found
    =undefined
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 1 col 325
    ...osi:A7}),require("ADS7843").connect(SPI1,A4,B6,-16,-16,352,2...
                                   ^
    in function "connect" called from line 3 col 47
      require("Touchscreen").connect(touchCallback);
                                                   ^
     at line 3 col 22
      for (var i=0;i<cols.length;i++) {
                          ^
    in function "drawCols" called from line 7 col 12
      drawCols();
                ^
     at line 10 col 15
      var cr = col.r*LCD.getHeight()/256;
                   ^
    in function "drawRGB" called from line 8 col 11
      drawRGB();
               ^
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
     at line 8 col 37
        colTo = cols[(Math.random()*cols.length)|0];
                                         ^
    in function called from system
    Uncaught Error: Field or method does not already exist, and can't create it on undefined
    

    it keeps loading new lines like that ^^^

  • And i did update it.

  • I actually have the thing saved on it correctly now, and all the touch works but when i hook up the leds, the screen goes away? any ideas?

  • I have he ws2811 leds hooked up the 3 that are in the connector go to with and grnd then red and 5v and then green pb15.

  • How many LEDs is that? You probably can't power very many off the builtin power source, and since they flash on when you connect them, that might be enough to reset the board. Does it work when you have the LEDs connected when you power it on? (in that case, I'd expect you to be able to turn on a few LEDs before overloading the power supply).

    You'll need an external supply to power any decent number of those wonderful LEDs. On full white they pull 50-60mA a pop!

  • Out of interest, what did you change to get the code loaded on properly?

    As @DrAzzy says, if the screen goes away when you hook up the LEDs then it could well be that they're drawing too much power, so you might need a separate power supply.

    You could try hooking just one or two up to check it works - just having a few on should be fine running off USB.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

A HY Mini-STM32 VCT6 3.2" board

Posted by Avatar for GarrettL @GarrettL

Actions