Avatar for jnewcomb

jnewcomb

Member since Jan 2016 • Last active Feb 2016
  • 1 conversations
  • 3 comments

Most recent activity

    • 5 comments
    • 1,318 views
  • in ESP8266
    Avatar for jnewcomb

    Tip: My ESP-7 defaults to 160MHz when newly flashed - which runs neopixelWrite(..) at twice speed

    var esp8266 = require("ESP8266");
    esp8266.setCPUFreq(80);
    

    fixed it..

  • in ESP8266
    Avatar for jnewcomb

    Hi, I can't get the software PWM to work either. I get a WDT reset if any call is made to analogWrite(..)

    D4.mode('output');
    =undefined
    analogWrite(D4, 0.1, {soft:true});
    =undefined

    Disconnected

  • in ESP8266
    Avatar for jnewcomb

    Hi, can anyone give the current state of play with PWM functions with espruino_1v84.tve_master_d8dec28_esp8266­?
    Intro states it's not yet implemented, but see code in github
    https://github.com/espruino/Espruino/blo­b/master/targets/esp8266/jshardware.c
    jshPinAnalogOutput

    So I've been playing - trying getting it working. Im getting WDT timeouts when ever I call 'analogWrite' in any of its forms

    
    analogWrite(D4, 0.5);
    =undefined
    

    Working with Web IDE so the following message gets sent to the UART


    ets Jan 8 2013,rst cause:4, boot mode:(3,3)
    wdt reset
    load 0x40100000, len 1396, room 16
    tail 4
    chksum 0x89
    load 0x3ffe8000, len 776, room 4
    tail 4
    chksum 0xe8
    load 0x3ffe8308, len 540, room 4
    tail 8
    chksum 0xc0
    csum 0xc0
    2nd boot version : 1.4(b1)
    SPI Speed : 40MHz
    SPI Mode : DIO
    SPI Flash Size & Map: 32Mbit(512KB+512KB)
    jump to run user1 @ 1000

    Tried a number of combinations:
    Tried pin D14 too

    D4.mode('af_output');
    analogWrite(D4, 0.5,{freq:10});
    D4.mode('output');
    analogWrite(D4, 0.5,{freq:10});
    analogWrite(D4, 0.5,{freq:100, soft:true});
    analogWrite(D4, 0.5);

    PS
    Great project and fun to play with..

Actions