69 Commits

Author SHA1 Message Date
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
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
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
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
funshine
856b8553bf comment out ws2812 temporary. remove node.led, node.key 2015-02-12 11:05:28 +08:00
funshine
2d711bbc0d update spiffs to 0.2.2, add file.rename api 2015-02-11 21:20:54 +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
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
funshine
dec47d5372 fix #185 2015-02-07 23:45:01 +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
devsaurus
5fbc4b2b2f route i2c sla to com driver function via u8g_t struct 2015-02-04 23:57:13 +01: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
devsaurus
6dfb82dbba factor out integer argument processing 2015-02-03 00:29:11 +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
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
425e664114 fix #132, #113, switch to lib/libssl.a 2015-01-27 20:47:41 +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
funshine
ad966146fc migrate to sdk 0.9.5 release version 2015-01-24 23:36:04 +08:00