Avatar for hungryforcodes

hungryforcodes

Member since Mar 2017 • Last active Feb 2019
  • 4 conversations
  • 93 comments

I love Espruino and bacon! :P

Most recent activity

  • in ESP32
    Avatar for hungryforcodes

    Thanks for the links Gordon, I checked them out, and you're right -- that for sure is the right approach. In my case I'm using it with something called the M5 Stack ( https://m5stack.com ), and thats a pretty neat little box, with lots of stackable options. Its totally usable as is, just not for making games or say, realtime UIs. Also, I know Jumjum and Wilberforce are working hard on the current challenges of integrating the latest versions of the ESP IDF.. . :)

  • in ESP32
    Avatar for hungryforcodes

    Oh I see. Thanks for the explanation! :)

  • in ESP32
    Avatar for hungryforcodes

    Yeah I'm using it as well for a project and while the software SPI trick certainly sped it up (I was using hardware SPI), its still pretty glacial. Interestingly, here is a guy who's got a number of games, including DOOM, running on an ESP32 and an ILI9341.

    https://hackaday.io/project/163464-gamin­g-on-the-esp32-odroid-go

    Its PRETTY fast. So there is potential....

  • in ESP32
    Avatar for hungryforcodes

    Hi Rovale,

    analogWrite, should work on the ESP32, depending on what version you are using. I've used it a fair amount. I know in recent versions of Espruino (for various reasons -- changes in the Espressif SDK specifically), there have been a few features that are currently regressed (such as WS2812 support), on the ESP32. But I did not notice anything about the analogWrite specifically.

    That said, unless I am mistaken, the analogWrite is a software feature -- not a hardware one -- so its timing is not super precise (as opposed to say, if it were interrupt driven). So its possible that setting the value after the PIN parameter causes the LED to dim, due to timing issues, though I have not specifically tried to drive an LED using this feature on the ESP32.

    I did try using analogWrite on the ESP8266 about a year or so ago, and it usually led to LEDs having a slight dimming. Specifically I was trying to control an RGB LED (not a WS2812, but one LED with three differently colored diodes, fed by three output pins), and there were issues with color consistency and dimness which I attributed to the software implementation.

    My suggestion would be to use digitalWrite for off and fully on, and then analogWrite for dimming or brightening the LED in between. Unless you need a luminosity profile that is extremely precise, it should be good enough for most projects I would imagine.

    More info here:

    https://www.espruino.com/PWM

  • in ESP8266
    Avatar for hungryforcodes

    @MaBe Thats why I'm kind of curious. That setting is one that didn't work for him. The changes he made in his working final flashing seemed to be "--flash_size=detect" and "--baud 460800" and "espruino_1v99_esp8266_4mb_combined_4096­.bin", which I assume elimited the wrong address (" 0x7c000 for file ...") problem. So maybe it was the the removal of the addresses, and the use of the combined file that did it.

    I'm just wondering what the working change was. For me I always use the standard from the README file and has never been a problem for me.

    Nice page btw: http://www.espruino.com/EspruinoESP8266 -- I see its been updated :)

  • in ESP8266
    Avatar for hungryforcodes

    Congratulations! :) Any ideas what it was? I see you changed a few things in the end.

  • in ESP8266
    Avatar for hungryforcodes

    Please provide us with your exact flashing procedure, step by step, including esptool command lines with parameters.

    If that looks ok, it could be a board problem or a communications issue.

  • in Projects
    Avatar for hungryforcodes

    Wow -- Nice! That looks like one sweet display too :)

  • in JavaScript
    Avatar for hungryforcodes

    Actually this was pretty useful. :) I also quite like the "Official" tag. :P

  • in ESP8266
    Avatar for hungryforcodes

    Yeah, I was more concerned about you getting a solution to your problem. That said, yes Espruino is great, and you should try it. In addition there are some great Espruino devices like the Pixljs and the Puckjs, which are fun. Check them out from the home page.

Actions