230 Commits

Author SHA1 Message Date
Gordon Williams
bc5039794d Do not garbage collect inside an IRQ, fix copy & paste bug 2017-07-24 13:20:17 +01:00
Gordon Williams
fc474da390 Improvements in handling errors in code running in IRQs
- if writing to disconnected Bluetooth device, throw data away immediately
             - Drop chars if output buffer is full while waiting in an IRQ
             - Handle out of memory errors in jsvCreateNewChild
2017-07-24 13:11:53 +01:00
wilberforce
10711c91da whitespace 2017-07-23 13:34:30 +12:00
wilberforce
41830f3659 fix ESP32 'Not connected to the internet' 2017-07-23 13:32:40 +12:00
Gordon Williams
f5e1e82ae2 Add 'errors' option when using to enable error handling (and turn it off by default as it can fill the input queue) 2017-06-19 12:24:39 +01:00
Simon Werner
63eeac649b Fixed problem with not running in bash. 2017-05-22 17:19:36 +12:00
wilberforce
1619fff1c7 increase espruino task stack to 20000 2017-04-30 15:50:21 +12:00
Gordon Williams
c09739f663 Remove duplicate JSON code and WiFi functions in reference, fix #1155 2017-04-29 19:02:51 +01:00
wilberforce
1ebaa2afba PWM fix 2017-04-26 15:39:21 +12:00
wilberforce
0fb9ed1e21 suppress warnings, FatFS docs, suppress logging 2017-04-22 11:17:45 +12:00
wilberforce
821afc6210 remove ESP_LOG calls 2017-04-04 18:39:24 +12:00
wilberforce
011042e2d9 Fix #1081 E.setBootCode(); 2017-04-03 21:19:49 +12:00
wilberforce
a44e3cbb5e Fix #1081 E.setBootCode(); 2017-04-03 21:14:16 +12:00
jumjum123
d116b3b02b Added i2c reset in jshardware(jshReset)
Set/reset device initialised
Reset i2c channel in setup, if already initialized before
2017-04-02 12:55:45 +12:00
jumjum123
e7b4258386 Corrected address in jshardwareI2c(jshI2CRead) 2017-04-02 12:55:45 +12:00
jumjum123
1f197e61b5 Set pin to be GPIO (not rmt or something else) before value is set in jshardware.c (jshPinSetValue)
Set pin to be rmt (not GPIO or something else) before rmt pulse is written in jshardarePulse.c (sendPulse)
2017-04-02 12:55:44 +12:00
wilberforce
1538bed9f6 Update Install.md 2017-04-02 11:39:39 +12:00
wilberforce
8b3b04579d Update README_flash.txt 2017-04-02 08:42:26 +12:00
wilberforce
1eca8b436b update to eso-idf v2.0-rc1 2017-04-01 14:34:10 +13:00
wilberforce
d93ea2ad6f Add fs.mkdir, E.flashFatFS({format:true}); 2017-03-23 13:50:56 +13:00
wilberforce
a167bd3eeb add build type FLASHFS 2017-03-23 01:05:20 +13:00
jumjum123
1973a776a9 Added reset function to jshreset for
- SPI
- ADC
- UART
- PULSE
2017-03-03 11:59:35 +01:00
jumjum123
1c4a4ec192 Merged wit latest changes(2nd of march 2017) from master
Added support for neopixel to esp32 branch
 Changes to be committed:
	modified:   Makefile
	modified:   libs/neopixel/jswrap_neopixel.c
	new file:   targets/esp32/esp32_neopixel.c
	new file:   targets/esp32/esp32_neopixel.h
2017-03-03 09:20:17 +01:00
jumjum123
8245df7b1b Merge remote-tracking branch 'origin/master' into ESP32 2017-03-02 17:51:01 +01:00
Gordon Williams
e3fe7dcf1c ensure ESP32-specfic task handling stays out of common docs for now 2017-03-02 14:54:11 +00:00
Gordon Williams
7928db756e sigh. refactor E.neopixelWrite to require('neopixel').write 2017-02-28 09:56:03 +00:00
jumjum123
e03d345cde Renamed targets/esp32/spi.* to jshardwareSpi.*
renamed targets/esp32/i2c.* to jshardwareI2c.*

Renamed includes for spi.h/i2c.h in jshardware.c, main.c, jshardwareSpi.c. jshardwareI2c.c
2017-02-25 15:46:42 +01:00
Gordon Williams
002938f4ad Add E.neopixelWrite for all platforms (fix #1023) 2017-02-24 18:22:14 +00:00
Rhys.Williams
26b085ce78 Merge branch 'ESP32' of https://github.com/espruino/Espruino into ESP32 2017-02-23 19:21:18 +13:00
Rhys.Williams
70c96f9fc8 Get Onewire working, support pin.toggle() 2017-02-23 18:58:15 +13:00
Rhys.Williams
6bcdb05e4b Get Onewire working, support pin.toggle() 2017-02-23 18:55:45 +13:00
jumjum123
720dbfd61a Merge pull request #1080 from wilberforce/ESP32
Set valid pins to 'input' on start up, Add telnet debugging, update tabs with spaces
2017-02-21 19:59:44 +01:00
Rhys.Williams
663010e25e update tabs to spaces 2017-02-22 00:38:58 +13:00
Rhys.Williams
6e52c6b30b Set valid pins to 'input' on start up, Add telnet debugging - yay telnet working! 2017-02-22 00:32:12 +13:00
MaBecker
59c1006eac fix detect(I2C1) 2017-02-18 00:00:40 +01:00
Rhys.Williams
dde21f544c major update to bring ESP32 branch upto current master 1v91.381 2017-02-16 19:48:31 +13:00
Rhys.Williams
82ef682b79 allow I2C2 device, and test - yes working with HD44780. Read not tested 2017-02-16 17:43:36 +13:00
Rhys.Williams
7b05f8fba3 first pass at i2c and spi functions - untested 2017-02-16 17:43:35 +13:00
Rhys.Williams
ca64061831 remove arduino libs dependancy (spi commented out) 2017-02-16 17:43:27 +13:00
Rhys.Williams
c40a05e06f remove arduino libs dependancy (spi commented out) 2017-02-16 17:43:16 +13:00
Rhys.Williams
a8c025c9e4 remove arduino libs dependancy (spi commented out) 2017-02-16 17:42:48 +13:00
Rhys.Williams
eb93bc3fd6 implement some of the missing GPIO pin functions 2017-02-16 17:41:35 +13:00
Rhys.Williams
7099b84468 Allow single byte read from flash so that save() works
Implement `wifi.save()` and `wifi.restore()` using inbuilt API (rather than save to flash like ESP8266)
2017-02-16 17:40:42 +13:00
kolban
e41040993c Initial files for the ESP32 environment. 2017-02-16 17:40:08 +13:00
Rhys.Williams
0cd311bf48 restore wifi initalisation 2017-02-15 20:29:28 +13:00
jumjum123
99222ee989 Tested version for SPI (with ILI9341)
Extended to support both SPI channel (HSPI and VSPI)
Todo:
More testing with other SPI based hardware
Testing with two or more devices on same SPI channel (using seperate CE pins)
Input from SPI device
Find a faster solution. Each byte has a lot of overhead in Espruino.
2017-02-13 22:52:51 +01:00
Rhys.Williams
d7d36fd794 jshreset, re-organise hardware start up 2017-02-12 20:21:37 +13:00
Rhys.Williams
cebf09b917 Correct 0x8000 partition, make menuconfig in docs 2017-02-11 17:46:17 +13:00
jumjum123
94c4e1a2cf Commented esp_restart in jshReset,
WebIDE does not like restart of ESP32 because of strange behaviour compared to Espruino boards.
ESP32 sends to much lines and takes too long to be recognized as started.
Will have to find a better solution.
2017-02-08 08:56:23 +01:00
jumjum123
290828ad97 changed load address in Install.md
There was a change in esp-idf from 0x4000 to 0x8000
2017-02-07 12:46:42 +01:00