Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    davidmoshal
    @davidmoshal
    thanks @MaBecker , my budget is $1,000 for a few lessons on getting set up with C/C++ toolchain, firmware debugging, etc.
    Mark Becker
    @MaBecker
    are you planning to use Espruino commercial?
    davidmoshal
    @davidmoshal
    I'm planning to potentially do something commercial, undecided on Espruino vs Duktape, vs Moddable, etc.
    Mark Becker
    @MaBecker
    ok
    abhigkar
    @abhigkar
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# which nrfutil
    /usr/local/bin/nrfutil
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# which adafruit-nrfutil
    /usr/local/bin/adafruit-nrfutil
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# nrfutil version
    adafruit-nrfutil version 0.5.3.post16
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1# adafruit-nrfutil version
    adafruit-nrfutil version 0.5.3.post16
    root@AbhinavPC-10:/mnt/d/EspruinoProject/Espruino-1#
    this is s bit strange I have nrgutils and adafruit-nefutil. both are in different location. But when I called both are pointing to adafruit-nrfutil
    I cannot build DFU packages
    GEN espruino_2v07.9_sparkfun.hex
    Creating DFU ZIP
    # nrfutil  pkg generate --help
    nrfutil pkg generate espruino_2v07.9_sparkfun.zip --application espruino_2v07.9_sparkfun_app.hex --application-version 0xff --hw-version 52 --sd-req 0x8C --key-file targets/nrf5x_dfu/dfu_private_key.pem  
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    Try "nrfutil --help" for help.
    
    Error: No such command "pkg".
    make: *** [make/common/NRF5X.make:453: espruino_2v07.9_sparkfun.zip] Error 2
    because adafruit-nrfutil does not have pkg argument.
    any fix? I am using WSL for Windows 10
    fanoush
    @fanoush
    they share same libraries but require different versions so cannot coexist in same python version/environment, try to install nrfutil in python2
    ysfss
    @ysfsvm

    hi, I've compiled an espruino for the id205 (it still exists in the original espruino repo). I had to change a few things to build. I think these are not critical things, at least enough to prevent the watch from booting. It shows
    WATCHDOG
    DFU 2.9.30
    booting...

    and always resets. Any ideas?

    abhigkar
    @abhigkar
    Thanks @fanoush , Ubunto 20.04 does not comes with Python2.7 and Pip2. Thus it was diffcult for me to manage different Python and Pip version.
    I got help from (here)[https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04/] to install pip2 for Ubuntu20.04 and after that I uninstall adafruit-nrfutil and nrfutil from pip3
    then Install adafrit-nrfutil using pip3 nd nrfutil using pip2
    this worked !!!
    Mohammad Almechkor
    @leaderiop
    hello everybody!
    can i import modules from npm like chance.js to my esp8266
    Ákos Lukács
    @AkosLukacs
    hi
    not really, most npm modules are just too big. for example chance.js minified is 176k
    and most have dependencies that either won't work, or toob big themselves
    but you can import arbitrary js files like require("https://github.com/espruino/EspruinoDocs/blob/master/devices/PCD8544.js");
    If it's a (by npm standards) small file, it will work
    Mohammad Almechkor
    @leaderiop
    thank you @AkosLukacs
    arturoolvrs
    @arturoolvrs

    Hi everyone.
    I am connecting my ESP8266-01 to my computer using a USB to FTDI adapter. However, when I connect it to the console, it does not respond to any AT commands. Only when I reset it using its pin with the console set at 74880 baud, it prints the following message:

    ets Jan 8 2013,rst cause:2, boot mode:(3,6)
    
    load 0x40100000, len 31320, room 16 
    tail 8
    chksum 0xef
    load 0x00000000, len 0, room 0 
    tail 0
    chksum 0xef
    load 0x00000000, len 0, room 8 
    tail 0
    chksum 0xef
    csum 0xef
    csum err
    ets_main.c

    What should I do?

    Mark Becker
    @MaBecker
    Webide for ESPs use 115200 baud
    arturoolvrs
    @arturoolvrs
    I know, but at that baudrate I get random characters
    Mark Becker
    @MaBecker
    look's like something went wrong with flashing, like firmware does not match device the board need different flash flags .......
    arturoolvrs
    @arturoolvrs

    https://forum.arduino.cc/t/esp8266-does-not-communicate-with-arduino/889187?u=arturo_olvrs

    I have already flashed it several times, and I believe I have done it correctly. Check this forum to see my previous attemps, please.

    Tim Caswell
    @creationix
    Are things completely broken currently for ESP32? I can't get wifi to work on any of my devices and tried flashing several different ways with the last 10 versions or so
    Mark Becker
    @MaBecker
    Hmm, which error code do you get?
    Trevor Merritt
    @trevormerritt
    Can anyone point me to some docs on running espruino under qemu? I'm planning on deploying on an ESP8266, but would like an option to not drag my hardware around with me. :)
    Mark Becker
    @MaBecker
    AFAIK there no docs for this, but you can build Espruino for Linux and start it with telnet option so the WebIDE can attach via TCPIP on localhost:2323
    Martin Hammerschmid
    @Maritn-Hammerschmid

    Hi there,

    is there a way to use the same digital pin as input and output to request/kick some events and then read the response?
    I like to use the same pin to light a LED, which will hold the light for some time and miliseconds later i would like to request the response from the light sensor if something is between.
    The LED should not be ON for the whole time, just only when i will request the value and i want to avoid using an additional digital output pin to turn on that LED beforehand

    fanoush
    @fanoush
    the pin itself can do it, it more depends how the led and the light sensor is connected so that they do not affect each other - 1. when pin is input, led may draw current from light sensor pulling the input value low 2. when pin is output to LED two outputs (from pin and light sensor) may fight and draw current when their output values are different
    Martin Hammerschmid
    @Maritn-Hammerschmid
    yes, that’s the point, i mean that they do not affect each other, i will try to solve this by using a transistor and a capacitor to use the output signal higfh as a short trigger to turn on the led and the sensor and the capacitor to hold this short circuit to switch the output back to input to get the sensor signal
    fanoush
    @fanoush
    with espruino if you keep the pin in default "auto" mode it will switch to input when calling read() and to output when calling write()
    you could force it to output via pin.mode("output"), same for input. then reading output pin should get you back the value you wrote there without changing mode to input
    indridieinarsson
    @indridieinarsson

    I'm trying to store some data persistently on the bangle.js - I use a binary file to save data, and when restarting the watch, I check for it's existence, and then load it like this:

            let tbuf = E.toArrayBuffer(require("Storage").read('widbarom.tdata.bin'));
            times = new Uint32Array(tbuf);

    However, the times variable seems not to reflect changes made to it. If I change it times[10]=100; e.g., it will still hold its original value afterwards.
    Is times in this case a read-only memory map to the original storage file? How would I go about to change it, then write it back to storage, in a MCU and Flash friendly way?

    4 replies
    Bradley Matusiak
    @bmatusiak
    I am attempting to port https://gun.eco/ to Espruino, using esp32 + sdcard
    Bradley Matusiak
    @bmatusiak

    this fails

    function u2f_b64(s) {
        return btoa(s).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
      };

    gets You have more open brackets than close brackets. Please see the hints in the Editor window.
    . i think packer dont like /\//g

    Bradley Matusiak
    @bmatusiak
    lol but this works
    function u2f_b64(s) {
        return btoa(s).replace(/\+/g, '-').replace(
          /\//g
          , '_').replace(/=/g, '');
      }
    Mark Becker
    @MaBecker
    hmm, you should post an issue on espruino github
    niamu_com
    @niamu_com:matrix.org
    [m]
    I've noticed Espruino is still using esp-idf v3.1.3. I've been working to try to bump Espruino up to esp-idf v3.3.6 since that will include support for allocating PSRAM on a TinyPICO board. Has anyone else explored this area before?
    niamu_com
    @niamu_com:matrix.org
    [m]

    For anyone else that is curious to see what changes I've made so far to attempt to make this work, see here: https://github.com/niamu/EspruinoBuildTools

    ./esp32/build/build.sh will build the project with Docker

    And the build failure that I'm currently trying to understand and resolve when running the build-tgz.sh script part of the build is available in the build_failure.log attachment in the previous message.