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
e77abc261b
cc3200: Default peripheral ID support on I2C.
9 years ago
Daniel Campora
c69642a460
cc3200: Increase error led blynk period to 100ms
9 years ago
Daniel Campora
3c4b78e166
cc3200: Keep overwriting the same image on sequential updates.
9 years ago
Daniel Campora
7d6b6f6681
cc3200: Make UART choose default id when not given.
9 years ago
Daniel Campora
4ba9b34012
cc3200: Reduce servers cycle time to improve FTP transfer rate.
9 years ago
Paul Sokolovsky
cb6cf5e257
unix/modjni: Add env() module function.
Useful to load native method libraries not loaded by VM (as happens on
Android).
9 years ago
Tom Soulanille
661d9d1901
py/objslice: Fix indent.
9 years ago
Tom Soulanille
aeb62f9ae3
py/objslice: Make slice attributes (start/stop/step) readable.
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
9 years ago
Damien George
d80174d7c3
stmhal: Use polling, not DMA, for 1 byte SPI transfers.
There is an issue sending 1 byte on the SPI bus using DMA, but it only
occurs when the transmit is done for the first time after initialising
the SPI and DMA peripherals. All other cases (sending 2 or more bytes,
doing send_recv, doing recv first) work okay. We sidestep this issue by
using polling (not DMA) for all 1 byte transfers. This is fine because
a 1 byte transfer can't be interrupted and doesn't need the benefits of
DMA (and using polling for this case is more efficient).
Resolves #1456 .
9 years ago
Bill Owens
e2bfa471fa
esp8266: Added wlan.isconnected() to maintain parity with other ports.
10 years ago
Tom Soulanille
04fffe6562
tests/README: Explain how tests get skipped
9 years ago
Damien George
0d6b2341b8
pic16bit: Add basic unistd.h file since it's not provided by tool chain.
9 years ago
Damien George
8b4fb4fe14
py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize.
When creating constant mpz's, the length of the mpz must be exactly how
many digits are used (not allocated) otherwise these numbers are not
compatible with dynamically allocated numbers.
Addresses issue #1448 .
9 years ago
Paul Sokolovsky
b230a86d33
unix/modjni: Return any object type value as a jobject.
9 years ago
Paul Sokolovsky
5167332131
unix/modjni: Return Java null as Python None.
9 years ago
Paul Sokolovsky
7a4b10cc4c
unix/modjni: Support static methods.
9 years ago
Paul Sokolovsky
a5deadf082
tools: Upgrade upip to 0.5.8.
Adds support for ussl module (which is experimental and not fully
implemented yet itself).
9 years ago
Paul Sokolovsky
26a9b4d48e
unix/modjni: Factor out new_jobject(), jvalue2py() functions.
9 years ago
Tom Soulanille
7731edf2f5
stmhal: Add "opt" arg to pyb.main, to set mp_optimise_value.
Use this to set the global optimisation value when executing the main
script (and all scripts it imports).
9 years ago
Damien George
229b908d2e
esp8266: Remove "time" command from deploy target.
9 years ago
Damien George
3ca84026db
unix: Enable REPL auto-indent.
9 years ago
Damien George
0af73014cc
lib/mp-readline: Add auto-indent support.
4 spaces are added at start of line to match previous indent, and if
previous line ended in colon.
Backspace deletes 4 space if only spaces begin a line.
Configurable via MICROPY_REPL_AUTO_INDENT. Disabled by default.
9 years ago
Paul Sokolovsky
4e7bde8c9e
unix/modjni: Factor out py2jvalue() function.
9 years ago
Dave Hylands
9d6128acdc
stmhal: fix single precision float printing error
Fixes #1435 .
9 years ago
Paul Sokolovsky
e79c6b6312
unix/modjni: "jni" module to interface to JNI-compliant JavaVM.
This includes Android Dalvik VM for example.
Example usage:
import jni
System = jni.cls("java/lang/System")
System.out.println("Hello, Java!")
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
7c87747db0
cc3200: Disable some uPy features in debug mode to help code fit.
9 years ago
Daniel Campora
425958b616
cc3200: Add SDcard pin af on index 8.
9 years ago
Daniel Campora
4cc0cd6cab
tests/wipy: Additional tests for when the UART is un-initialized.
9 years ago
Daniel Campora
d936317143
cc3200: New I2C API.
9 years ago
Daniel Campora
359b4e9ed9
cc3200: Refactor pin af assigment functions.
9 years ago
Daniel Campora
1d399c3c88
cc3200: Improve file system check routine.
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
4054c4eadd
cc3200: Remove I2C inline documentation (sphinx is on the lead).
9 years ago
Daniel Campora
f8b98d8329
tests/wipy: Improve UART tests with no pin assignment case.
9 years ago
Daniel Campora
88ca6c94d9
tests: Ignore exception chain test on the WiPy.
Fails because warnings are not enabled on the CC3200.
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
42054c3cad
cc3200: Add mphal error to raise hardware related exceptions.
9 years ago
Daniel Campora
598aad2140
cc3200: Fix bug in pybsleep remove.
9 years ago
Daniel Campora
475c60eefc
cc3200: Add alt param to Pin constructor.
9 years ago
Daniel Campora
86854c7071
cc3200: Adapt smoke.py for the new pin API.
9 years ago