Bill Owens
e2bfa471fa
esp8266: Added wlan.isconnected() to maintain parity with other ports.
2015-09-15 20:07:50 +03:00
Tom Soulanille
04fffe6562
tests/README: Explain how tests get skipped
2015-09-15 20:05:05 +03:00
Damien George
0d6b2341b8
pic16bit: Add basic unistd.h file since it's not provided by tool chain.
2015-09-15 16:24:13 +01:00
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 .
2015-09-15 16:15:57 +01:00
Paul Sokolovsky
b230a86d33
unix/modjni: Return any object type value as a jobject.
2015-09-15 14:07:39 +03:00
Paul Sokolovsky
5167332131
unix/modjni: Return Java null as Python None.
2015-09-14 00:15:35 +03:00
Paul Sokolovsky
7a4b10cc4c
unix/modjni: Support static methods.
2015-09-14 00:12:47 +03:00
Paul Sokolovsky
a5deadf082
tools: Upgrade upip to 0.5.8.
...
Adds support for ussl module (which is experimental and not fully
implemented yet itself).
2015-09-13 09:49:09 +03:00
Paul Sokolovsky
26a9b4d48e
unix/modjni: Factor out new_jobject(), jvalue2py() functions.
2015-09-13 01:27:47 +03:00
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).
2015-09-12 22:53:54 +01:00
Damien George
229b908d2e
esp8266: Remove "time" command from deploy target.
2015-09-12 22:22:30 +01:00
Damien George
3ca84026db
unix: Enable REPL auto-indent.
2015-09-12 22:09:18 +01:00
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.
2015-09-12 22:07:23 +01:00
Paul Sokolovsky
4e7bde8c9e
unix/modjni: Factor out py2jvalue() function.
2015-09-12 00:20:06 +03:00
Dave Hylands
9d6128acdc
stmhal: fix single precision float printing error
...
Fixes #1435 .
2015-09-11 23:09:50 +03:00
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!")
2015-09-11 21:38:57 +03:00
Daniel Campora
f352fe82a5
tests/wipy: Add I2C tests.
2015-09-10 08:00:59 +02:00
Daniel Campora
d265df589e
tests/wipy: Disable the REPL on UART before running the UART test.
2015-09-10 08:00:53 +02:00
Daniel Campora
7c87747db0
cc3200: Disable some uPy features in debug mode to help code fit.
2015-09-10 08:00:47 +02:00
Daniel Campora
425958b616
cc3200: Add SDcard pin af on index 8.
2015-09-10 08:00:41 +02:00
Daniel Campora
4cc0cd6cab
tests/wipy: Additional tests for when the UART is un-initialized.
2015-09-10 08:00:35 +02:00
Daniel Campora
d936317143
cc3200: New I2C API.
2015-09-10 08:00:30 +02:00
Daniel Campora
359b4e9ed9
cc3200: Refactor pin af assigment functions.
2015-09-10 08:00:24 +02:00
Daniel Campora
1d399c3c88
cc3200: Improve file system check routine.
2015-09-10 08:00:18 +02:00
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.
2015-09-10 08:00:12 +02:00