- 06 May, 2015 7 commits
-
-
Josef Gajdusek authored
The function passed to socket.onsent() gets called after data is succesfully sent by the socket.
-
Josef Gajdusek authored
This was causing crashes in .onconnect()
-
Damien George authored
Also remove __debug__ from one of the bytecode tests.
-
Josef Gajdusek authored
As user_init() is not a true main functions, the stack pointer captured within is not pointing at the base of the stack. This caused gc_collect being called with sp being higher than stack_end, causing integer overflow and crashing as gc tried to scan almost the entire address space.
-
Damien George authored
Addresses issue #1226.
-
Paul Sokolovsky authored
(Windows compatibility.)
-
Ari Suutari authored
so that resulting file is correct also on windows systems (ie. with file names containing drive letter).
-
- 05 May, 2015 8 commits
-
-
Damien George authored
esp8266 port now has working raw and friendly REPL, as well as working soft reset (CTRL-D at REPL, or raise SystemExit). tools/pyboard.py now works with esp8266 port.
-
Damien George authored
-
Damien George authored
-
Josef Gajdusek authored
-
Damien George authored
Ellipsis constant is rarely used so no point having an extra bytecode for it.
-
Paul Sokolovsky authored
User instances are hashable by default (using __hash__ inherited from "object"). But if __eq__ is defined and __hash__ not defined in particular class, instance is not hashable.
-
Paul Sokolovsky authored
Having NotImplemented as MP_OBJ_SENTINEL turned out to be problematic (it needs to be checked for in a lot of places, otherwise it'll crash as would pass MP_OBJ_IS_OBJ()), so made a proper singleton value like Ellipsis, both of them sharing the same type.
-
Daniel Campora authored
This only disables some corner case functionality to keep C Python compatibility, and saves ~600 bytes.
-
- 04 May, 2015 7 commits
-
-
Paul Sokolovsky authored
From https://docs.python.org/3/library/constants.html#NotImplemented : "Special value which should be returned by the binary special methods (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__(), __iand__(), etc.) for the same purpose. Its truth value is true." Some people however appear to abuse it to mean "no value" when None is a legitimate value (don't do that).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Josef Gajdusek authored
* UDP currently not supported * As there is no way (that I know of) the espconn_regist_connectcb() callback can recognize on which socket has the connection arrived, only one listening function at a time is supported
-
Josef Gajdusek authored
-
Damien George authored
Addresses issue #1203.
-
Paul Sokolovsky authored
Refactored from "stm" module, provides mem8, mem16, mem32 objects with array subscript syntax.
-
- 03 May, 2015 7 commits
-
-
Paul Sokolovsky authored
-
Josef Gajdusek authored
-
Eero af Heurlin authored
-
Daniel Campora authored
Remove unused and unneeded functions, also create Pin.get_config() that returns the whole configuration of the pin. This reduces code size by ~500 bytes.
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
- 01 May, 2015 1 commit
-
-
Damien George authored
This is consistent with the logic in mp_get_buffer, and the code here is an inlined version of that function.
-
- 30 Apr, 2015 1 commit
-
-
stijn authored
- by default look for a user.props in the msvc directory, which is more convenient than the built-in way of looking for such file in the user's home directory - make git ignore the file
-
- 29 Apr, 2015 7 commits
-
-
Daniel Campora authored
This one creates a semaphore, therefore it must be executed only after a hard reset (or when coming out of hibernation).
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
While in STA mode isconnected() returns True when connected to an AP and the IP has been acquired. In AP mode, WLAN.isconnected() returns True if at least one connected station is present.
-
Daniel Campora authored
-
Dave Hylands authored
This allows errors to be seen and prevents hanging the board from doing: pyb.disable_irq()
-
Damien George authored
-
- 28 Apr, 2015 2 commits
-
-
Damien George authored
Can complete names in the global namespace, as well as a chain of attributes, eg pyb.Pin.board.<tab> will give a list of all board pins. Costs 700 bytes ROM on Thumb2 arch, but greatly increases usability of REPL prompt.
-
Damien George authored
-