David Lechner
3dc324d3f1
tests: Format all Python code with black, except tests in basics subdir.
This adds the Python files in the tests/ directory to be formatted with
./tools/codeformat.py. The basics/ subdirectory is excluded for now so we
aren't changing too much at once.
In a few places `# fmt: off`/`# fmt: on` was used where the code had
special formatting for readability or where the test was actually testing
the specific formatting.
5 years ago
Ville Skyttä
ca16c38210
various: Spelling fixes
8 years ago
Paul Sokolovsky
8212773adb
tests: Use read() instead of readall().
8 years ago
danicampora
add930c4b5
cc3200: Rename 'server' class to 'Server' for consistency.
9 years ago
danicampora
cc7a4d7db2
tests/wipy: Correct machine test expected result.
9 years ago
danicampora
fe9620a2bd
test/wipy: Add Timer class tests.
9 years ago
danicampora
e4404fbef0
cc3200: Unmount all user file systems after a soft reset.
9 years ago
danicampora
1950295735
cc3200: Set pin direction first, then value. Fixes #1542 .
9 years ago
danicampora
075ca64521
cc3200: Fix UART tests after correcting uart.read() behaviour.
9 years ago
danicampora
1f2daf4304
cc3200: Correct ticks_cpu and ticks_us functions in time module.
9 years ago
danicampora
9c72c71c05
cc3200: WLAN class can retrieve the existing instance.
9 years ago
danicampora
f4c50f1cfc
tests/wipy: Make WLAN test more stable.
9 years ago
danicampora
ae70e98ed4
cc3200: Fix time.ticks_* functions.
9 years ago
danicampora
36ae417c9f
docs: Add wipy and network.server documentation.
9 years ago
danicampora
2e0cd20a1d
cc3200: Refactor network module to make the server a propper object.
9 years ago
danicampora
d8137178bb
cc3200: Create wipy module, remove HeartBeat class.
The heartbeat is now controllable via a single function within the
wipy module.
9 years ago
danicampora
e19dfe1c32
cc3200: In scan results rename 'auth' field to 'sec'.
As defined by the new API, since 'auth' is actually a tuple
composed by the security type and the key.
9 years ago
Daniel Campora
d88d3b0b3a
tests/wipy: Skip the rtc_irq test.
9 years ago
Daniel Campora
6143f63560
tests/wipy: Fix error in wlan test.
9 years ago
Daniel Campora
37a2015cc5
tests/wipy: Add machine module tests.
9 years ago
Daniel Campora
c92e6a45eb
cc3200: Rename pyb module to machine.
9 years ago
Daniel Campora
0a7e4fa5ce
tests/wipy: Improve robustness of rtc_irq test.
9 years ago
Daniel Campora
8192310dad
tests/wipy: Improve robustness of time test.
9 years ago
Daniel Campora
ef369249cb
cc3200: Implement support for os.dupterm().
9 years ago
Daniel Campora
57fa14b5be
cc3200: New WLAN API including test.
9 years ago
Daniel Campora
dbdcb58d64
cc3200: New irq API, affects all classes that provide the irq method.
9 years ago
Daniel Campora
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
9 years ago
Daniel Campora
660f8613fd
tests/wipy: Remove unneeded dependencies to pyb.Pin.
9 years ago
Daniel Campora
22b4c28f85
cc3200: New ADC API.
9 years ago
Daniel Campora
0e52d9860a
tests/wipy: Improve I2C tests.
9 years ago
Daniel Campora
aba75e1233
cc3200: New SPI API.
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
e77abc261b
cc3200: Default peripheral ID support on I2C.
9 years ago
Daniel Campora
7d6b6f6681
cc3200: Make UART choose default id when not given.
9 years ago
Daniel Campora
f352fe82a5
tests/wipy: Add I2C tests.
9 years ago
Daniel Campora
d265df589e
tests/wipy: Disable the REPL on UART before running the UART test.
9 years ago
Daniel Campora
4cc0cd6cab
tests/wipy: Additional tests for when the UART is un-initialized.
9 years ago
Daniel Campora
4d7fa05b43
cc3200: Improve Pin and UART implementation.
Deassign pins af before assigning. Make uart.any() return the
correct value everytime, this requires interrupts to be always
enabled.
9 years ago
Daniel Campora
f8b98d8329
tests/wipy: Improve UART tests with no pin assignment case.
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