Damien George
3962766be0
esp8266: Add esp.neopixel_write function to bit-bang WS2812 data.
9 years ago
Damien George
b62beadae0
esp8266: Link ADC class into machine module.
9 years ago
Paul Sokolovsky
f71c0699a5
esp8266: Put utils.o to FlashROM.
9 years ago
Paul Sokolovsky
9c7e3353e5
esp8266: Put lexerstr32.o into FlashROM.
9 years ago
Paul Sokolovsky
ba640bde55
esp8266/esppwm.c: Fix IRQ handler prototype.
9 years ago
Damien George
632d8efa05
esp8266: Add PWM support.
PWM implementation uses a timer and interrupts (FRC1), taken from
Espressif's/NodeMCU's implementation and adapted for our use.
8 channels are supported, on pins 0, 2, 4, 5, 12, 13, 14, 15.
Usage:
import machine
pwm0 = machine.PWM(machine.Pin(0))
pwm0.freq(1000)
pwm0.duty(500)
Frequency is shared (ie the same) for all channels. Frequency is
between 1 and 1000. Duty is between 0 and 1023.
9 years ago
Damien George
82b95f625e
esp8266: Implement software SPI class.
Supports speeds up to 500k baud, polarity=0/1, phase=0/1, and using any
pins. Only supports MSB output at the moment.
9 years ago
Paul Sokolovsky
91031a75a1
extmod/modlwip: lwip_socket_setsockopt: Handle option value properly.
9 years ago
Paul Sokolovsky
4332d72fd8
extmod/modlwip: Add lwip->POSIX error map for lwIP 1.4.0.
Between 1.4.0 and 1.4.1, lwIP errors were renumbered.
9 years ago
Paul Sokolovsky
de0c84ebf1
extmod/modlwip: lwip_tcp_send: Handle properly send buffer full condition.
Per POSIX http://pubs.opengroup.org/onlinepubs/9699919799/functions/send.html :
"If space is not available at the sending socket to hold the message to be
transmitted, and the socket file descriptor does not have O_NONBLOCK set,
send() shall block until space is available. If space is not available at the
sending socket to hold the message to be transmitted, and the socket file
descriptor does have O_NONBLOCK set, send() shall fail [with EAGAIN]."
9 years ago
Paul Sokolovsky
5e75f335e6
extmod/modlwip: Implement setsocketopt(SO_REUSEADDR).
9 years ago
Paul Sokolovsky
0cb10b5220
docs/esp8266/quickref: Add note about GPIO16.
9 years ago
Paul Sokolovsky
159f1aaca8
docs/esp8266/quickref: Note that timers supported are virtual ones.
9 years ago
Paul Sokolovsky
e589cddcd4
docs/esp: Remove getaddrinfo(), now in socket module as expected.
9 years ago
Paul Sokolovsky
6e6488530e
docs: More standard modules for esp8266.
9 years ago
Paul Sokolovsky
4b5606bc09
docs/network: esp8266: Update docs on WLAN constructor.
9 years ago
Paul Sokolovsky
ee6fcc6f91
docs: Add standard modules list for esp8266.
9 years ago
Paul Sokolovsky
96a644076d
docs/topindex.html: Refer to "pyb" module only for pyboard.
9 years ago
Paul Sokolovsky
8f1854ad2d
extmod/modlwip: Add SOL_SOCKET and SO_REUSEADDR constants for setsockopt().
9 years ago
Paul Sokolovsky
ac671546d1
esp8266/README: Remove outdated reference to initial port heap size.
9 years ago
Paul Sokolovsky
88f60de914
tests: Add test for io.BufferedWriter.
9 years ago
Paul Sokolovsky
2c81b9be28
py/modio: io.BufferedWriter: Describe flushing policy.
9 years ago
Paul Sokolovsky
063e6e7d0a
py/modio: Implement io.BufferedWriter.flush().
9 years ago
Paul Sokolovsky
5d93dfbc2c
py/modio: Initial implementation of io.BufferedWriter class.
Just .write() method implemented currently.
9 years ago
Paul Sokolovsky
3dbd2ee926
extmod/modwebsocket: Implement read support.
9 years ago
Paul Sokolovsky
4a02a8f74d
py/stream: Fix object vs ptr usecase in mp_stream_writeall().
9 years ago
Paul Sokolovsky
24342dd65e
extmod/modwebsocket: Start module for WebSocket helper functions.
Currently, only write support is implemented (of limited buffer size).
9 years ago
Paul Sokolovsky
d4c8e626f2
py/stream: Add mp_stream_writeall() helper function.
Spools entire output buffer to a blocking stream (chunk by chunk if
needed).
9 years ago
Damien George
a5d48b1162
esp8266: Add tests/onewire.py as a driver and test code for ds18b20 dev.
9 years ago
Damien George
78d0dde562
esp8266: Add onewire helper functions as C module.
Includes functions to read and write bits and bytes.
9 years ago
Damien George
0cdbd356fd
esp8266: Implement bit-bang I2C read, and add i2c.readfrom method.
I2C reading tested with TSL2561 luminosity sensor.
9 years ago
Damien George
5b9f361824
esp8266: Clean up bit-bang I2C implementation.
Changed from using set_sda_scl function to independent set_sda and
set_scl functions.
9 years ago
Paul Sokolovsky
667d64b430
esp8266/modpybi2c: Add missing include.
9 years ago
Damien George
dd32f02cc3
esp8266: Add basic I2C driver, with init and writeto methods.
Tested and working with SSD1306 I2C display.
9 years ago
Damien George
7059c8c23c
esp8266: Expose pin object as a public structure for use as C pin API.
This is an initial attempt at making a simple C pin API for writing
things like I2C drivers in C.
9 years ago
Paul Sokolovsky
a1d072df81
esp8266: Enable auto-indent in REPL.
9 years ago
Paul Sokolovsky
df1f6783f2
esp8266: Add "socket" and "usocket" aliases for lwip module.
9 years ago
Paul Sokolovsky
494aea3e86
esp8266: Enable non-blocking stream support.
9 years ago
Damien George
5bc9398d9d
esp8266: Enable more extmod's: uheapq, ure, uzlib.
9 years ago
Damien George
8000d51b68
esp8266: Add module weak link from json to ujson.
9 years ago
Paul Sokolovsky
1a0adf49df
esp8266: Enable urandom module.
9 years ago
Damien George
e673714cfe
esp8266: Make mp_hal_delay_us work with new event framework.
9 years ago
Paul Sokolovsky
58e2ad42ae
esp8266: Update README with the latest features.
9 years ago
Damien George
b894551772
extmod/uctypes: Change param type from void* to byte*.
9 years ago
Damien George
da161fd9f0
extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types.
9 years ago
Damien George
12154b1774
extmod/uctypes: Use mp_binary_get_val helper when extracting value.
It handles more cases than mp_binary_get_int.
9 years ago
Damien George
8d4d6731f5
py/parse: When looking up consts, check they exist before checking type.
9 years ago
Peter Hinch
2b302dad51
docs: Update pyb.UART.any() to mention that it returns character count.
9 years ago
Peter Hinch
6d5a549067
docs: Mention that pyb.SPI constructor accepts "X" and "Y" arguments.
9 years ago
Peter Hinch
b8133c4c0f
docs: Update pyb.I2C constructor to reflect changes in Pyboard Lite.
9 years ago