Search found 14 matches

by Frida854
Wed Jan 25, 2017 5:09 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

A little error in "test_i2c_1.js"

line 21,22

Code: Select all

port1.beginTransmission(i);
var rc = port1.endTransmission();
changed to

Code: Select all

port1.beginTransaction(i);
var rc = port1.endTransaction();
then I found my sensor.

Have a nice evening
by Frida854
Tue Jan 24, 2017 1:10 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

After several sleepless nights, (just kidding), I downloaded all today.
esp-idf, xtensa-esp32-elf, template and duktape-esp32.
Without running duktape-install and duktape-configure, I just compile, did a flash_erase and flash and are now up running again.
Now on to some test again.
Thank you.
by Frida854
Tue Jan 17, 2017 1:18 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

Today's download gives me 2 errors. I have tried to change the lines, but the file is auto generated again, so what to do? CC extras/module-duktape/duk_module_duktape.o In file included from /home/poul/Programmer/Duktape32/duktape-esp32/components/duktape/extras/module-duktape/duk_module_duktape.c:5...
by Frida854
Sun Jan 15, 2017 1:16 pm
Forum: Report Bugs
Topic: Values arbitrarily won't print to serial monitor
Replies: 1
Views: 4956

Re: Values arbitrarily won't print to serial monitor

Code: Select all

if(dtheta > 355 || dtheta-5 < 0){
Have you tryed:

Code: Select all

if( (dtheta > 355) || (dtheta<5) ){
by Frida854
Wed Jan 04, 2017 8:53 pm
Forum: ESP-IDF
Topic: LEDC Fade PWM *Phase*
Replies: 10
Views: 22858

Re: LEDC Fade PWM *Phase*

Just in case,
Are ch[1..4] and sync compatible with 3.3 volt, If the board is powered with 5.0 volts, it needs level shifters.
by Frida854
Tue Jan 03, 2017 9:39 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

After I have run the make in tools and started node uartScriptRunner.js -f txt.txt I got this: D (323688) log: Parsing completed D (323689) log: Our accumulated data is: console.log("Hello!"); console.log("Free heap: " + ESP32.getState().heapSize); D (323695) log: Command is: RUN D (323707) modules:...
by Frida854
Tue Jan 03, 2017 8:16 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

I had to move RMT.js from the 'doc' folder to the 'filesystem' folder, then it works.

If I set useSerial = 1, and change rx, tx to my pins, how does the serial console work, or is it not ready yet?
by Frida854
Mon Jan 02, 2017 8:14 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

When I send these 2 lines, from firmware yesterday: console.log("Hello World\n"); console.log("Settings initially: " + JSON.stringify(RMT.getState()) + "\n"); I got those errors: D (114596) modules: >> js_console_log called D (114596) log: Console: Hello World D (114598) log: ReferenceError: 4 D (11...
by Frida854
Sat Dec 31, 2016 1:52 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

I'm a happy driver again, it was those 4 lines that had to be changed, in: duktape-esp32/main/module_wifi.c line 581 strcpy((char *)sta_config.sta.ssid, ssid); line 582 strcpy((char *)sta_config.sta.password, password); line 692 strcpy((char *)ap_config.ap.ssid, ssid); line 694 strcpy((char *)ap_con...
by Frida854
Fri Dec 30, 2016 6:28 pm
Forum: Showcase
Topic: JavaScript on ESP32 - Duktape
Replies: 68
Views: 130045

Re: JavaScript on ESP32 - Duktape

After a fresh download of: duktape-esp32 esp-idf template xtensa-esp32-elf I got these errors: /home/poul/Programmer/Duktape32/duktape-esp32/main/./module_wifi.c: In function 'js_wifi_connect': /home/poul/Programmer/Duktape32/duktape-esp32/main/./module_wifi.c:581:3: error: pointer targets in passin...