funshine
3d14530b80
fix cjson.encode() when in integer version
2015-03-18 19:37:47 +08:00
funshine
3aead6d230
try to fix cjson.encode in integer only version
2015-03-18 17:01:01 +08:00
funshine
a70709268b
merge cjson and dev to master, make a stable release
2015-03-18 14:22:17 +08:00
zeroday
a01bda03dd
Merge pull request #294 from nodemcu/json
...
Json branch merged to master
2015-03-18 13:11:11 +08:00
devsaurus
09b650be41
disable untested pcd8544 driver for the moment
2015-03-17 20:52:47 +01:00
devsaurus
87598c5dfe
Merge remote-tracking branch 'upstream/dev' into dev
2015-03-17 20:35:39 +01:00
funshine
808a359eb8
quick fix when wide charactor issue
2015-03-17 22:42:22 +08:00
Markus Gritsch
b648e9a8db
Added node.setcpufreq(mhz) function.
...
This function allows setting the CPU frequency to node.CPU80MHZ or
node.CPU160MHZ.
2015-03-17 10:23:45 +01:00
funshine
45e7f270cc
Merge branch 'dev' into json
2015-03-17 00:13:15 +08:00
funshine
4d3c1a930f
code clean up for cjson
2015-03-17 00:12:25 +08:00
funshine
54004a4beb
fix cjson bugs and reduce mem usage
2015-03-16 23:59:57 +08:00
funshine
c0d690ce7e
under development
2015-03-16 17:11:48 +08:00
funshine
d425dd7127
under develop
2015-03-16 17:09:43 +08:00
funshine
83f53c23c1
json port from cjson. not work yet, add cjson folder
2015-03-16 09:19:06 +08:00
funshine
c9912f1d82
json port from cjson. not work yet, delete folder
2015-03-16 09:17:21 +08:00
funshine
9c0c960e84
json port from cjson. not work yet
2015-03-16 09:00:33 +08:00
Vowstar
4d5242e1b7
Merge pull request #284 from nodemcu/dev
...
Sync from dev to dev096.
2015-03-16 05:44:51 +08:00
HuangRui
5c84359b5c
ROM flash size can changed with detected size, fixed #283 .
2015-03-16 05:40:43 +08:00
devsaurus
3124bcf357
Merge remote-tracking branch 'upstream/dev' into dev
2015-03-15 22:06:30 +01:00
HuangRui
f7eed2b53b
Changed e9 to magic_e9.
2015-03-16 01:44:54 +08:00
HuangRui
0b01f28c62
Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware
...
Conflicts:
app/include/user_modules.h
app/include/user_version.h
2015-03-16 01:13:03 +08:00
HuangRui
4e7473bc00
Fixed flash automatic detection bug. Support 128MBit flash.
2015-03-16 01:05:06 +08:00
HuangRui
dfce182622
Paste new version, make it can get correct flash size.
2015-03-16 00:51:47 +08:00
HuangRui
ed87cbd96f
Try to fix flash auto detection bug.
2015-03-16 00:48:28 +08:00
funshine
0b95ae08a2
default build with coap, reduce coap module mem usage
2015-03-15 20:12:29 +08:00
Vowstar
e3c31d0629
Merge pull request #280 from nodemcu/master
...
Merge master to dev096.
2015-03-15 20:04:55 +08:00
funshine
394cced84b
fix #273
2015-03-15 16:06:35 +08:00
funshine
f510e658d5
merge master solve conflicts
2015-03-15 15:01:07 +08:00
funshine
c46000069d
reduce coap module memory usage
2015-03-15 13:44:50 +08:00
Erant
0a4049767a
Fix getFSF to abide by the function contract
2015-03-14 09:00:25 -07:00
devsaurus
3b37f0920c
res optional
2015-03-13 22:22:57 +01:00
devsaurus
429bf57d67
add pcd8544
2015-03-12 23:09:41 +01:00
devsaurus
b387ba93ec
introduce u8g_config.h
2015-03-12 21:50:57 +01:00
devsaurus
7b160da1a3
Merge remote-tracking branch 'upstream/dev' into dev
2015-03-12 21:16:39 +01:00
funshine
8638863ac8
update readme
2015-03-12 14:20:40 +08:00
funshine
9f006acd8a
update readme
2015-03-12 14:05:47 +08:00
devsaurus
4f55ee4e34
validate SPI comm interface with ssd1306_128x64_spi
2015-03-11 21:53:45 +01:00
funshine
d28a2c9eda
add interger version release, fix #234 , #252 , #246
2015-03-11 13:21:19 +08:00
funshine
24411d34c1
fix tmr.time()
2015-03-11 08:59:00 +08:00
funshine
27c0620912
fix bugs for spiffs from pellepl/spiffs
2015-03-10 23:07:47 +08:00
funshine
81ea8d9597
add math, add file.fsinfo(), update spiffs.
2015-03-10 01:12:36 +08:00
devsaurus
76a499313f
Merge remote-tracking branch 'upstream/dev' into dev
2015-03-07 21:54:37 +01:00
funshine
8369f74bd0
comment out math.fmod to reduce code size
2015-03-06 17:00:37 +08:00
funshine
9d0c733073
Merge branch 'dev' into dev096
2015-03-06 16:46:37 +08:00
funshine
45f6abd448
merge coap
2015-03-06 16:24:55 +08:00
funshine
13b08cdacf
add macro to control built-in lib for lua, add libm.a
2015-03-06 15:55:24 +08:00
HuangRui
6ea3d6390c
Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware
...
Conflicts:
app/include/user_config.h
ld/eagle.app.v6.ld
2015-03-06 14:02:58 +08:00
funshine
bbef457e50
seperate user_config.h to speed-up compile when modules disabled/enabled
2015-03-06 11:59:04 +08:00
devsaurus
315d1a1696
Merge remote-tracking branch 'upstream/dev' into dev
2015-03-04 22:18:26 +01:00
Markus Gritsch
ab1eb0b93b
Accidentally removed ROM_MODULES_U8G
...
I am sorry, I made an error in my last pull request and accidentally
removed ROM_MODULES_U8G. Here is it back again.
2015-03-03 20:51:16 +01:00
Markus Gritsch
484dbf2683
Changed the ws2812 byte order from GRB to RGB
...
There seems to be interest in using the more intuitive RGB byte order to
specify the LED color. Also fixed the documentation.
2015-03-03 14:51:49 +01:00
Markus Gritsch
8432e8c8be
Changed the ws2812 byte order from GRB to RGB
...
There seems to be interest in using the more intuitive RGB byte order to
specify the LED color. Also fixed the documentation.
2015-03-03 10:20:02 +01:00
devsaurus
5f1d324059
remove caching
2015-03-01 23:45:25 +01:00
devsaurus
32774d428c
handle font data as light userdata
2015-03-01 23:11:24 +01:00
devsaurus
7ae293d566
set free'd pointer to NULL
2015-02-25 23:17:08 +01:00
Ezekiel-DA
c869eddb8a
Update file.c
...
Made file.seek() return nil on error / EOF, as specified in documentation, instead of returning true.
2015-02-25 14:34:07 -05:00
HuangRui
7c820b4e8f
Update header of flash binary definition.
2015-02-25 23:08:08 +08:00
devsaurus
2cfb86b5b5
improve device and page buffer initialization
2015-02-20 21:15:38 +01:00
devsaurus
e3ed4fc0da
fix typo
2015-02-20 18:24:53 +01:00
devsaurus
6c0adbf980
SPI comm function, untested
2015-02-20 11:07:52 +01:00
devsaurus
81be529d68
preparation for adding more display devices: allocate and construct page buffer
...
dynamically to save heap for unused device types
2015-02-19 16:47:41 +01:00
devsaurus
8e42631a81
implement drawBitmap
2015-02-19 12:12:14 +01:00
devsaurus
a287020096
implement drawXBM
2015-02-18 23:57:34 +01:00
HuangRui
37d2c9f6c1
Revert and remove EGC in user_config.h
2015-02-17 23:44:05 +08:00
HuangRui
c05fc843f4
Enable EGC.
2015-02-17 02:25:05 +08:00
HuangRui
cb9828e357
Add newline at the file end of dummy.c
2015-02-16 22:14:37 +08:00
HuangRui
bb0a5b1d7c
Re enabled open-source LWIP using dummy.c
...
Fixed the RAM issue.
2015-02-16 21:50:08 +08:00
devsaurus
4fd11fdfa9
Merge remote-tracking branch 'upstream/dev' into dev
2015-02-16 14:37:53 +01:00
HuangRui
86f0a7307f
Roll back system_get_vdd33 to readvdd33.
...
Bug not fixed in this version =(
2015-02-16 13:08:37 +08:00
HuangRui
05fe3ea9f1
Update to SDK 0.9.6_b1
...
The open source LWIP is broken, use espressif's liblwip.a.
Uses system_get_vdd33 instead of readvdd33.
The espressif's sdk0.9.6 beta1 (2015.02.15) release note
1、Optimize smartconfig to version v0.8;
2、Optimize AT to version 0.22.b1;
1>、Fixed bugs;
2>、Optimize the speed of transparent transmission;
3、Optimize boot to version 1.3(b3);
1>、Fix compatibility problem of dual flash ;
4、Solve problem of the large current in deep sleep;
5、Fixed problem “check mem fail”;
6、Fixed problem of UDP socket may stop listening broadcast packet after a long time running under some special router;
7、Fixed bug related to wifi_station_scan;
8、Other optimize to make the software more reliable;
2015-02-16 11:37:39 +08:00
HuangRui
378398d41d
Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware
2015-02-15 02:14:53 +08:00
HuangRui
0232c13b83
Emergency update, fix flash size auto detection bug.
...
64Mbit and 128Mbit supported by hardware, but not supported by this SDK 0.9.5. Waiting SDK update.
2015-02-15 02:13:58 +08:00
HuangRui
f6b1d3a399
Test what caused flash AUTO_SIZE bug.
2015-02-15 00:02:53 +08:00
funshine
1798c6b78c
minor update
2015-02-14 16:59:45 +08:00
devsaurus
05997cb477
remove superfluous files
2015-02-13 22:01:52 +01:00
devsaurus
655b06b48e
Merge remote-tracking branch 'upstream/dev' into dev
2015-02-13 21:59:34 +01:00
funshine
2c5c00a56a
add net.socket:getpeer() api, returns peer ip,port
2015-02-14 02:38:15 +08:00
funshine
fab1f9560a
revert LUA_BUFFERSIZE to 1024
2015-02-14 02:17:27 +08:00
funshine
6c1c6805b3
modify loadfile to malloc memory according to file size
2015-02-13 19:23:30 +08:00
funshine
6e840a453f
add node.compile() api
2015-02-13 15:11:59 +08:00
HuangRui
059a5eebdd
wifi.ap.setip() can set ip address now, fixed #199 .
2015-02-12 22:43:48 +08:00
HuangRui
960032ddd8
Fixed compilation fails, adjust redefined #define __P(x) x,closed #206 .
2015-02-12 20:03:27 +08:00
funshine
856b8553bf
comment out ws2812 temporary. remove node.led, node.key
2015-02-12 11:05:28 +08:00
HuangRui
22d096ce7c
Remove PRINTF_LONG_SUPPORT. It is useless now.
2015-02-12 01:23:35 +08:00
HuangRui
f60f446300
Floating point good. Revert LUA_NUMBER_FMT to "%.14g".
2015-02-12 01:21:26 +08:00
HuangRui
f3540ffe29
Fixed many floating point bug.
...
Fixed #148 String:format Floating point, width.precision not working.
Fixed #140 string.format not working since 0127(float version) #140 .
2015-02-12 01:15:30 +08:00
HuangRui
b86bb49576
Move powersOf10 to spi-flash.
2015-02-11 23:07:08 +08:00
HuangRui
d49182c1ab
Move powersOf10 array to global.
2015-02-11 23:05:46 +08:00
HuangRui
db43b1e005
Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware
2015-02-11 22:51:33 +08:00
HuangRui
d2cdba255f
Supported more baudrate.
2015-02-11 22:50:26 +08:00
funshine
a34e6e8e3d
Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware into dev
2015-02-11 21:21:37 +08:00
funshine
2d711bbc0d
update spiffs to 0.2.2, add file.rename api
2015-02-11 21:20:54 +08:00
HuangRui
5d9caf23b6
Support 64Mbit and 128Mbit flash size auto detection.
2015-02-11 21:16:48 +08:00
HuangRui
c7c88feae4
Add 8M and 16M fixed flash size options.
2015-02-11 21:01:57 +08:00
devsaurus
5fa0a0bc46
cache pgm read data
2015-02-10 22:04:43 +01:00
devsaurus
f2c881db18
Merge remote-tracking branch 'upstream/dev' into dev
2015-02-10 21:40:29 +01:00
HuangRui
f1f508ca98
Optimization of floating point Memory usage again.
2015-02-11 00:39:03 +08:00
HuangRui
7fda5bdf76
Use more powerful UART baudrate list from RTOS driver.
2015-02-10 22:39:50 +08:00
HuangRui
0f09d23714
Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware
2015-02-10 22:27:21 +08:00
zeroday
a9398b1dd4
Merge pull request #196 from Point-less/master
...
Added the hold and unhold methods to tcp socket
2015-02-09 22:17:13 +08:00
Santiago
929d4aed5c
Added the hold and unhold methods to tcp socket
2015-02-09 03:00:18 -03:00
Vowstar
0fe694b10f
Merge pull request #192 from dereulenspiegel/ws2812
...
Add support for WS2812 based LED strips
2015-02-09 12:39:49 +08:00
devsaurus
fdab682776
implement begin()
2015-02-08 21:41:02 +01:00
devsaurus
0b7ef1f485
implement further functions
2015-02-08 21:21:26 +01:00
devsaurus
27d99643df
rotation functions
2015-02-08 17:59:09 +01:00
devsaurus
145a0f01c8
add scaling functions
2015-02-08 17:17:04 +01:00
devsaurus
c1662a9932
use __XTENSA__
2015-02-08 14:51:41 +01:00
funshine
dec47d5372
fix #185
2015-02-07 23:45:01 +08:00
funshine
c529d56a8f
minor fix to debug mode
2015-02-07 23:08:25 +08:00
Till Klocke
0bbaedac89
Renamed lgpio_ws2812 to match lua method name and fixed formatting
2015-02-07 07:05:41 +01:00
devsaurus
d7f04a1de8
further reduce RAM usage, consolidate font memory and "PROGMEM"
2015-02-06 23:02:56 +01:00
Till Klocke
284ee8c46e
Added attribution and fixed documentation in comments
2015-02-05 18:47:08 +01:00
Till Klocke
c30002b8df
Fixed typo in method name
2015-02-05 18:43:29 +01:00
Till Klocke
0950e48925
Added support for WS2812 LEDs as a new module
2015-02-05 18:40:46 +01:00
HuangRui
361bedf0b9
Optimization of memory usage when using double pow(double x, double y).
2015-02-05 12:26:20 +08:00
HuangRui
cca0de9b39
Align the code of c_math.c
2015-02-05 10:20:20 +08:00
HuangRui
bb244d47ab
Move array about pow form local to global.
2015-02-05 10:06:22 +08:00
devsaurus
0c9b6f0b6b
re-enable mqtt and ow
2015-02-05 00:02:16 +01:00
devsaurus
5fbc4b2b2f
route i2c sla to com driver function via u8g_t struct
2015-02-04 23:57:13 +01:00
devsaurus
82e126eb95
Merge branch 'master' into dev
2015-02-04 22:00:57 +01:00
funshine
3077990a66
remove FLASH_ATTR
2015-02-05 01:58:47 +08:00
funshine
1740841e4f
fix #175
2015-02-05 01:42:14 +08:00
funshine
4754064ecf
add coap module, see fragment.lua for usage
2015-02-05 01:32:57 +08:00
devsaurus
9f0b167832
improve font handling
...
* macros established to build a table of fonts which get compiled into the image
* font data is mapped to irom0 to save dram space
* quirky function to retrieve font data 4-byte aligned from irom0
2015-02-04 00:08:39 +01:00
devsaurus
12a546ce3d
Merge remote-tracking branch 'upstream/master'
2015-02-03 20:49:18 +01:00
Simon John
f6161230a6
Fixes BIT_RATE typo's so 9600 isn't defined 3 times
2015-02-03 17:47:33 +00:00
cle69
4c785fc979
Update platform.c
...
Add Bit Rate 1200,2400,4800
2015-02-03 10:18:58 +01:00
cle69
d48168b920
Update uart.h
...
Add Baudrate 1200, 2400,4800
2015-02-03 09:26:21 +01:00
devsaurus
6dfb82dbba
factor out integer argument processing
2015-02-03 00:29:11 +01:00
devsaurus
18a44e7c60
reduce executable size (-fdata-sections and -Wl,--gc-sections)
2015-02-02 22:48:15 +01:00
Tuan PM
c5e9d800a1
Add support multiple subscriptions, resolve nodemcu/nodemcu-firmware#152
2015-02-02 16:58:54 +07:00
devsaurus
ed8681f956
implemented full graphics_test
2015-02-01 17:27:20 +01:00
devsaurus
6b3abb004a
* increase irom0_0_seg size to accomodate u8glib code
...
* implement first functions for graphics test
2015-02-01 17:27:19 +01:00
devsaurus
a2672113aa
* add u8glib
...
* initializer for SSD1306 display with I2C driver
* disabled mqtt and ow modules to avoid irom0_0_seg overflow
check ld script to increase size
2015-02-01 17:27:19 +01:00
devsaurus
b440b686f2
u8glib v1.17
2015-02-01 17:27:19 +01:00
devsaurus
33601462ef
add u8g module stubs
2015-02-01 17:27:19 +01:00
Tuan PM
fb0938db2e
fixes nodemcu/nodemcu-firmware#155 lwt qos, retain, change header support MQTT 3.1.1
2015-01-31 11:49:24 +07:00
HuangRui
5894df1da6
Combined dsleep_set_options(option) to dsleep( us, option )
...
* dsleep( us, option )
Hardware has to support deep-sleep wake up (XPD_DCDC connects to EXT_RSTB with 0R). system_deep_sleep(0) ,set no wake up timer,connect a GPIO to pin RST, the chip will wake up by a falling-edge on pin RST.
** us: Integer
time to sleep.
if us = 0, it will sleep forever.
** option: Integer
option=0, init data byte 108 is valuable;
option>0, init data byte 108 is valueless.
More details as follows:
0, RF_CAL or not after deep-sleep wake up, depends on init data byte 108.
1, RF_CAL after deep-sleep wake up, there will belarge current.
2, no RF_CAL after deep-sleep wake up, there will only be small current.
4, disable RF after deep-sleep wake up, just like modem sleep, there will be the smallest current.
2015-01-29 14:21:38 +08:00
alonewolfx2
f4214294d3
new sleep set options added (from 0.9.5 sdk)
...
usage:
-- no wakeup until rst pin to low
node.dsleep(0)
-- 4 mean no RF after deepsleep.
node.dsleepsetoption(4)
2015-01-28 18:13:19 +02:00
funshine
1346cbbc38
fix string.format, maybe partialy
2015-01-27 21:48:44 +08:00
funshine
6a0599d22c
fix alignment
2015-01-27 21:02:54 +08:00
funshine
425e664114
fix #132 , #113 , switch to lib/libssl.a
2015-01-27 20:47:41 +08:00
HuangRui
c16d62e926
Fix UPGRADE_DBG when in DEVELOP_VERSION.
2015-01-27 13:48:10 +08:00
HuangRui
c39deb2a43
Turn floating point option ON.
...
Add pre_build/0.9.5/nodemcu_20150127.bin.
2015-01-26 22:25:43 +08:00
HuangRui
cf4cd8f450
Merge branch 'master' of https://github.com/nodemcu/nodemcu-firmware into devfloat
2015-01-26 20:00:30 +08:00
HuangRui
646eaec29c
Fixed LUA_NUMBER_INTEGRAL definition in user_config.h.
2015-01-26 19:57:54 +08:00
alonewolfx2
4af0873122
for reading internal vdd33 pin voltage.
...
example usage and result
```
print(node.readvdd33())
3348
>
```
2015-01-26 12:17:15 +02:00
HuangRui
e11721ebfd
Support floating point.
...
Add PRINTF_LONG_SUPPORT to %g option.
2015-01-26 17:21:43 +08:00
HuangRui
2e513a967e
Add floating point support for output.
...
Changed %.14g to %g.
Add c_sprintf definition.
2015-01-26 17:17:04 +08:00
HuangRui
530e964d95
Try to ENABLE floating point, lack %g support.
2015-01-26 04:15:54 +08:00