Alex March
81407729a5
esp8266/modesp: Implement flash_write(), flash_erase().
9 years ago
Paul Sokolovsky
fce0036a67
esp8266: mac() function belongs to network module per the latest API.
9 years ago
Paul Sokolovsky
90202b4c0d
esp8266/modesp: Implement flash_read(offset, size_bytes) function.
Based on vendor API documentation, untested on real hardware.
9 years ago
Bill Owens
e2bfa471fa
esp8266: Added wlan.isconnected() to maintain parity with other ports.
10 years ago
Bill Owens
a66a99bfd8
esp8266: Added wifi_mode() to read and set WiFi operating mode.
10 years ago
Bill Owens
60ccb41fac
esp8266: Move status() from esp module to network
10 years ago
Paul Sokolovsky
ee3fec3167
esp8266: Add skeleton "network" module.
MicroPython "network" module interface requires it to contains classes
to instantiate. But as we have a static network interace, make WLAN()
"constructor" just return module itself, and just make all methods
module-global functions.
10 years ago
Josef Gajdusek
286ced4c2f
esp8266: Add a bunch of miscellaneous methods
10 years ago
Josef Gajdusek
25a8a42447
esp8266: Add pyb.ADC class
10 years ago
Josef Gajdusek
59610c4004
esp8266: Add uos module
Currently implements only .uname()
10 years ago
Josef Gajdusek
103d12a877
esp8266: Add utime and pyb.RTC
10 years ago
Josef Gajdusek
d39d96b700
esp8266: Add .onsent callback support
The function passed to socket.onsent() gets called after data is succesfully
sent by the socket.
10 years ago
Josef Gajdusek
9e00ac89d5
esp8266: Add esp.socket class, with ESP-style socket functionality.
* UDP currently not supported
* As there is no way (that I know of) the espconn_regist_connectcb()
callback can recognize on which socket has the connection arrived,
only one listening function at a time is supported
10 years ago
Josef Gajdusek
7e7039b53c
esp8266: Export station status() constants
10 years ago
Damien George
87c6250b4c
esp8266: Add basic pyb.Pin class; supports output mode only.
10 years ago
Paul Sokolovsky
d6f648d04f
esp8266: modesp: Add status() function for connection status.
10 years ago
Paul Sokolovsky
1cd47c6315
esp8266: modesp: Add disconnect() function to disconnect from WiFi AP.
10 years ago
Paul Sokolovsky
471b2a8906
esp8266: modesp: Add connect() function to connect to WiFi AP.
10 years ago
Paul Sokolovsky
6ec650b41f
esp8266: Add "esp" module with esp8266-specific "cooperative" networking.
So far implements .scan(lambda x: print(x)) function to scan for WiFi access
points.
10 years ago
Paul Sokolovsky
438b3d26b5
esp8266: Add missing hard_reset qstr.
10 years ago
Damien George
075d597464
esp8266: New port of Micro Python to ESP8266 wifi module.
10 years ago
Damien George
04b9147e15
Add license header to (almost) all files.
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
11 years ago
Damien George
3021632501
stmhal: Shuffle around some init functions in main().
11 years ago
Damien George
6cfda3084d
stmhal: Add I2C support; change accel driver to use new I2C.
11 years ago
Damien George
0e9d96f18f
stmhal: Make Led, Servo and Accel their class, not a function.
11 years ago
Damien George
9050b2ee33
stmhal: Improved interface to accelerometer.
11 years ago
Damien George
f78d9b1a72
stmhal: Add accelerometer driver; fix bug with LFN.
11 years ago
Damien George
2abbae3419
stm: Rename mma -> accel.
11 years ago