Noah
00960133c2
docs: Update docs for WiPy wlan.connect().
- The link establishment timeout is infinite by default
- Fix typo in notes about the auth kwarg
9 years ago
Paul Sokolovsky
549c79d11e
docs/select: Document POLLIN/OUT/ERR/HUP.
9 years ago
Paul Sokolovsky
43efb46328
docs/library/index.rst: Minimally adapt for unix port.
9 years ago
Paul Sokolovsky
98b6d35c4f
docs: select: Describe poll.poll() return value in detail.
9 years ago
Paul Sokolovsky
b7ab70c71c
docs: USB_VCP: Always in non-blocking mode, clarify stream method returns.
They return None if no data available.
9 years ago
Paul Sokolovsky
cf6daa0966
docs: Explicitly specify behavior of UART stream protocol methods on timeout.
9 years ago
danicampora
ee7bebc94f
docs: Correct machine.RTC examples.
9 years ago
danicampora
4efed58df1
docs: Fix typos on wipy docs.
9 years ago
danicampora
e954604ae0
docs: Add remark about ssl sockets and standard sockets.
9 years ago
danicampora
ee0058d174
docs: Remove remaining references to 'af', which is now 'alt'.
9 years ago
danicampora
ceb169008d
docs: Several corrections to the classes in the machine module.
9 years ago
danicampora
04db848dc7
docs: Add usocket and ussl modules' documentation.
9 years ago
danicampora
9c72c71c05
cc3200: WLAN class can retrieve the existing instance.
9 years ago
danicampora
8faf2dc75b
docs/wipy: Add wipy tutorials section.
9 years ago
danicampora
36ae417c9f
docs: Add wipy and network.server documentation.
9 years ago
danicampora
4542643025
docs: Update all WiPy docs to reflect the new API.
9 years ago
Damien George
d6442407f5
docs: Fix formatting of DAC code examples.
9 years ago
Damien George
b5c43be135
stmhal: Allow to set bits resolution for DAC; 8 is default, can have 12.
This patch allows to configure the DAC resolution in the constructor and
in the init function, eg:
dac = DAC(1, bits=12).
The default resolution is 8 bits for backwards compatibility. The bits
sets the maximum value accepted by write and write_timed methods, being
2**bits - 1.
When using write_timed with 12-bit resolution, the input buffer is
treated as an unsigned half-word array, typecode 'H'.
See PR #1130 for discussion.
9 years ago
Damien George
845b5a2a58
docs: Describe properly how MCU can be woken from pyb.standby() state.
9 years ago
Radomir Dopieralski
37ab061f4d
docs: Update esp8266 documentation to match the code.
* Move the esp.status() to network module.
* Describe the wifi.isconnected() method.
* Describe esp.mac(), esp.wifi_mode(), esp.phy_mode(), esp.sleep_type(),
esp.deepsleep(), and esp.flash_id() functions.
9 years ago
Daniel Campora
861fad5819
docs: Adapt WiPy's ADC doc and quickref to the new API.
9 years ago
Daniel Campora
aba75e1233
cc3200: New SPI API.
9 years ago
Daniel Campora
624cdeacc4
docs/wipy: Add pins to the I2C constructor.
9 years ago
Daniel Campora
41f6948545
cc3200: New WDT API.
9 years ago
Daniel Campora
8332044f75
cc3200: Add UART.ODD and UART.EVEN to select parity.
9 years ago
Daniel Campora
d5ec336eef
cc3200: Replace Pin.PULL_NONE with None.
9 years ago
Daniel Campora
f38d16483a
docs: Update I2C and UART docs to match the new API.
9 years ago
Daniel Campora
f91f212d9f
cc3200: New UART API plus related test.
9 years ago
Daniel Campora
36821d095a
cc3200: Add alternate functions list to Pin object.
Also remove pin.high() and pin.low() methods.
9 years ago
Daniel Campora
d5e256486e
cc3200: Re-work Pin class according to the new API.
Also add relevant test.
9 years ago
Daniel Campora
11d21081b4
cc3200: Rework SD API. Increase heap to avoid malloc failures.
9 years ago
Daniel Campora
34c290b678
cc3200: Rename SPI nss param to cs.
The nss param in the pyboard has a different meaning that doesn't
apply to the WiPy.
9 years ago
Daniel Campora
ea5061e409
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
9 years ago
Daniel Campora
7027fd5343
cc3200: Make ADC API compatible with the pyboard.
9 years ago
Daniel Campora
e54a4f1f48
cc3200: Improve support for WEP security.
Key is always entered as a string, but if security is WEP, the key
is converted automatically to hex before connecting or configuring
the device as an AP.
9 years ago
Daniel Campora
d43019163d
docs: Add i2c keywork arguments only indication.
9 years ago
Daniel Campora
00c4d6562e
cc3200: Add nic.iwconfig() to set/get WLAN configuration.
Changes are based on this post:
https://github.com/micropython/micropython/issues/876#issuecomment-115255551
The constructor can optionally take the same params of iwconfig in
order to configure WiFi when creating the object. Params are
keyworkd only. The WiPy accepts:
- mode (int -> WLAN.AP or WLAN.STA)
- ssdi (string)
- security (int -> WLAN.OPEN, WLAN.WEP, WLAN.WPA, WLAN.WPA2)
- key (string)
- channel (int (1-11))
- antenna (int -> WLAN.INTERNAL, WLAN.EXTERNAL)
9 years ago
Daniel Campora
c6926c374d
cc3200: Make I2C and SPI API the same as in stmhal.
9 years ago
Daniel Campora
007878781c
cc3200: Rename pins from GPIO to just GP.
This is how the names will be printed on the sticker that goes on top
of the EMI shield. The shorter names also help saving a few bytes of
RAM and ROM.
9 years ago
Damien George
7693ef3bd6
stmhal: Allow ADC.read_timed to take Timer object in place of freq.
This allows a user-specified Timer for the triggering of the ADC read,
mirroring the new behaviour of DAC.write_timed.
Addresses issue #1129 .
9 years ago
Damien George
abc24c1876
stmhal: Allow DAC.write_timed to take Timer object in place of freq.
This allows the DAC to use a user-specified Timer for the triggering
(instead of the default Timer(6)), while still supporting original
behaviour.
Addresses issues #1129 and #1388 .
9 years ago
Damien George
7463442e58
docs: Update pyb.Accel doc to reflect changes and explain filtered_xyz.
9 years ago
Daniel Campora
5161239c9f
cc3200: time.sleep() now receives seconds, like CPython.
9 years ago
Daniel Campora
813b581127
cc3200: Add `Pin.name()` method.
10 years ago
Damien George
fa1cdb09fc
docs: Fix duplicate label error for network.WLAN.
10 years ago
Bill Owens
7c61249ae6
esp8266: Updated documentation for scan() and moved to network
10 years ago
Daniel Campora
ea2cc2b907
docs: Add more documentation for the CC3200 in the pyb module.
10 years ago
Radomir Dopieralski
05c6fbcae6
esp8266: Fix the documentation for esp.connect() and esp.disconnect()
Since the commit that moved those two functions failed to update
the documentation, this is a fix for that.
10 years ago
Daniel Campora
cfcf47c064
docs: Add initial draft documentation for the WiPy.
This makes all common files "port-aware" using the .. only directive.
10 years ago
Paul Sokolovsky
06e85ecfa6
docs/uctype: Update for constructor argument order changes.
Also, other small cleanups/improvements.
10 years ago