Daniel Mizyrycki
50dc5f10a6
docs/reference/filesystem: Fix typo in block device code example.
5 years ago
Damien George
84958a8fe1
extmod/modbluetooth: Allow setting ringbuf size via BLE.config(rxbuf=).
The size of the event ringbuf was previously fixed to compile-time config
value, but it's necessary to sometimes increase this for applications that
have large characteristic buffers to read, or many events at once.
With this commit the size can be set via BLE.config(rxbuf=512), for
example. This also resizes the internal event data buffer which sets the
maximum size of incoming data passed to the event handler.
5 years ago
Damien George
7aeafe2ae9
extmod/modbluetooth: Add optional 4th arg to gattc_write for write mode.
This allows the user to explicitly select the behaviour of the write to the
remote peripheral. This is needed for peripherals that have
characteristics with WRITE_NO_RESPONSE set (instead of normal WRITE). The
function's signature is now:
BLE.gattc_write(conn_handle, value_handle, data, mode=0)
mode=0 means write without response, while mode=1 means write with
response. The latter was the original behaviour so this commit is a change
in behaviour of this method, and one should specify 1 as the 4th argument
to get back the old behaviour.
In the future there could be more modes supported, such as long writes.
5 years ago
Jim Mussared
9a849cc7ca
docs: Add littlefs docs and a filesystem tutorial.
5 years ago
Jim Mussared
f2650be844
docs/library: Add docs for pyb.Flash class.
5 years ago
Jim Mussared
d7dbd267e7
docs/reference: Add docs describing use of pyboard.py.
5 years ago
Damien George
90c524c114
docs: Remove spaces on lines that are empty.
5 years ago
Jim Mussared
e873d352ad
extmod/modbluetooth: Simplify management of pre-allocated event data.
The address, adv payload and uuid fields of the event are pre-allocated by
modbluetooth, and reused in the IRQ handler. Simplify this and move all
storage into the `mp_obj_bluetooth_ble_t` instance.
This now allows users to hold on to a reference to these instances without
crashes, although they may be overwritten by future events. If they want
to hold onto the values longer term they need to copy them.
5 years ago
Damien George
d667bc642f
docs/library/ubluetooth: Fix name and link to FLAG_xxx constants.
5 years ago
Jim Mussared
d30b75e8f2
docs/library/machine.SDCard.rst: Fix various typos.
5 years ago
Jim Mussared
59850c0b83
docs/templates/topindex.html: Replace usage of deprecated defindex.html.
defindex.html (used by topindex.html) is deprecated, but topindex.html was
already identical other than setting the title, so just inherit directly
from layout.html.
5 years ago
Jim Mussared
1295146a6f
docs/conf.py: Fix path to favicon.ico.
5 years ago
Jim Mussared
ca3d4c84e4
docs/library/ubluetooth: Add docs for gatts_set_buffer.
5 years ago
Damien George
7a24b7f091
docs/library: Add documentation for extended block device protocol.
5 years ago
Mike Wadsten
f69ef97f24
docs: Move ubluetooth under "MicroPython-specific libraries".
CPython does not have a bluetooth module,
so it is not appropriate to call ubluetooth
a Python standard library or micro-library.
5 years ago
Jim Mussared
19e87742c4
docs/library/bluetooth: Rename to "ubluetooth".
5 years ago
Damien George
a2eea57b1d
docs/library: Rename "array" module to "uarray".
5 years ago
Volodymyr Shymanskyy
615d6b3c66
docs/wipy/tutorial: Link Blynk examples to the official library.
6 years ago
Mike Causer
a2c4cb484d
docs: Fix spelling in various parts of the docs.
6 years ago
Mike Causer
5a8f392f09
docs/esp8266: Add ntptime usage to esp8266 quickref.
6 years ago
Peter Hinch
c0b3419261
docs/library: Clarify relation between machine and port-specific mods.
6 years ago
Thiago Paes
5463ab6df6
docs/esp8266/tutorial: Make http_get sample function self contained.
6 years ago
Damien George
d1ed73ca8f
docs/library/bluetooth.rst: Fix typo in HR/UART services example.
5 years ago
Jim Mussared
36502bdfdc
extmod/modbluetooth: Make gap_disconnect not raise when disconnected.
Previously it raised OSError(MP_ENOTCONN) if the conn_handle was already
disconnected. Now it returns True/False.
5 years ago
Jim Mussared
ea315d7d58
docs/library/bluetooth.rst: Explain how to increase char buffer size.
5 years ago
Jim Mussared
62e3a966fb
docs/library/bluetooth.rst: Clarify gap_advertise adv_data behavior.
Make it clear that the previous adv_data will be reused if it's not set.
And some minor other improvements.
5 years ago
Jim Mussared
a93495b66d
docs/reference/glossary.rst: Add new terms and reduce complexity of old.
5 years ago
Jim Mussared
dc82bee298
docs/library/bluetooth: Add initial BLE documentation.
5 years ago
Jim Mussared
4ddd46e6cf
docs/develop/qstr.rst: Add documentation for string interning.
5 years ago
Damien George
78e0e76b4f
docs/library/pyb.USB_VCP.rst: Add info about id and flow params.
5 years ago
Damien George
cb84e22ac6
docs/library/pyb.rst: Update pyb.usb_mode() to mention VCP+MSC+HID.
5 years ago
Damien George
50636e5296
docs/library/pyb.rst: Update docs for pyb.usb_mode() function.
5 years ago
Damien George
e509da22df
docs/library: Specify new machine.ADC class.
This initial specification is only for the ADC constructor and read_u16()
method.
5 years ago
Damien George
8a237237a3
docs: Rename machine.ADC docs to machine.ADCWiPy.
To signify that this ADC documentation is specific to the WiPy, and to make
way for a standardised ADC documentation.
5 years ago
Jim Mussared
74fe841449
docs/library/pyb.DAC.rst: Correct frequency for triangle mode output.
Also correct comments in related code.
5 years ago
Paul m. p. P
afc8596c15
docs/reference/speed_python: Add missing self to var caching example.
5 years ago
Damien George
05eb897d06
esp32: Add esp32.Partition class to expose partition and OTA funcs.
Partitions are exposed as a standard MicroPython block device.
5 years ago
Peter Hinch
3a679eaf00
docs/reference/speed_python: Update that read-only buffers are accepted.
As allowed by recent cd35dd9d9a
5 years ago
Vicki Lowe
afd10a4531
docs/pyboard: Emphasize the instructions for making a USB mouse.
It wasn't clear why that element was `10` instead of `0`. Also bumped the
`10` to `100` to make the mouse movement more obvious.
5 years ago
Tom McDermott
d5a7741606
docs/library: Document that sys.version_info returns a 3-tuple only.
See issue #4970 .
5 years ago
Vicki Lowe
6592a30f4b
docs/pyboard: Clarify initial files on pyboard and fix up formatting.
5 years ago
Vicki Lowe
57476a3c37
docs/pyboard: Update name of mounted volume to match code.
5 years ago
Damien George
ed9c0185d8
docs/library/sys: Add documentation for sys.atexit function.
5 years ago
Arsenijs
00e7fe8ab1
docs/library/framebuf: Add missing module reference in example code.
5 years ago
Damien George
a29334761d
esp32: Add support for hardware I2C.
5 years ago
Jim Mussared
bc66fe9064
py/scheduler: Rename sched_stack to sched_queue.
Behaviour was changed from stack to queue in
8977c7eb58
, and this updates variable names
to match. Also updates other references (docs, error messages).
5 years ago
Nicko van Someren
1a51fc9ddf
esp32/machine_sdcard: Fix bug in SPI slot number selection.
And fix minor typo in docs when referring to SDCard class.
5 years ago
Nicko van Someren
6077d17150
docs/machine: Add initial docs for new machine.SDCard class.
6 years ago
Damien George
6f75c4f3cd
all: Bump version to 1.11.
6 years ago
Damien George
e5e472198c
docs/pyboard/quickref: Refer to new machine.I2C instead of old pyb.I2C.
On stm32 boards, machine.I2C is now preferred over pyb.I2C.
6 years ago