- 05 Aug, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Addresses issue #790.
-
- 04 Aug, 2014 2 commits
-
-
Damien George authored
Make a clearer distinction between init functions that must be done before any scripts can run (xxx_init0) and those that can be safely deferred (xxx_init). Fix bug initialising USB VCP exception. Addresses issue #788. Re-order some init function to improve reliability of reset/soft-reset.
-
Damien George authored
qstr_init is always called exactly before mp_init, so makes sense to just have mp_init call it. Similarly with mp_init_emergency_exception_buf. Doing this makes the ports simpler and less error prone (ie they can no longer forget to call these).
-
- 03 Aug, 2014 1 commit
-
-
Damien George authored
-
- 02 Aug, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Written in Python, not currently working. See issue #725.
-
- 01 Aug, 2014 1 commit
-
-
Dave Hylands authored
-
- 31 Jul, 2014 4 commits
-
-
Damien George authored
Some important changes to the way the file system is structured on the pyboard: 1. 0: and 1: drive names are now replaced with POSIX inspired directories, namely /flash and /sd. 2. Filesystem now supports the notion of a current working directory. Supports the standard Python way of manipulating it: os.chdir and os.getcwd. 3. On boot up, current directory is /flash if no SD inserted, else /sd if SD inserted. Then runs boot.py and main.py from the current dir. This is the same as the old behaviour, but is much more consistent and flexible (eg you can os.chdir in boot.py to change where main.py is run from). 4. sys.path (for import) is now set to '' (current dir), plus /flash and /flash/lib, and then /sd and /sd/lib if SD inserted. This, along with CWD, means that import now works properly. You can import a file from the current directory. 5. os.listdir is fixed to return just the basename, not the full path. See issue #537 for background and discussion.
-
Damien George authored
Addresses issue #724.
-
Damien George authored
For accel to start-up reliably, need to wait 30ms between on/off, and 30ms for it to enter active mode. With this fix the accel can be read immediately after initialising it. Addresses issue #763.
-
Damien George authored
Before, pyb.stdin/pyb.stdout allowed some kind of access to the USB VCP device, but it was basic access. This patch adds a proper USB_VCP class and object with much more control over the USB VCP device. Create an object with pyb.USB_VCP(), then use this object as if it were a UART object. It has send, recv, read, write, and other methods. send and recv allow a timeout to be specified. Addresses issue 774.
-
- 30 Jul, 2014 1 commit
-
-
Damien George authored
Lexer is now 8-bit clean inside strings.
-
- 27 Jul, 2014 1 commit
-
-
Damien George authored
-
- 25 Jul, 2014 1 commit
-
-
Dave Hylands authored
The user code should call micropython.alloc_emergency_exception_buf(size) where size is the size of the buffer used to print the argument passed to the exception. With the test code from #732, and a call to micropython.alloc_emergenncy_exception_buf(100) the following error is now printed: ```python >>> import heartbeat_irq Uncaught exception in Timer(4) interrupt handler Traceback (most recent call last): File "0://heartbeat_irq.py", line 14, in heartbeat_cb NameError: name 'led' is not defined ```
-
- 22 Jul, 2014 2 commits
- 21 Jul, 2014 1 commit
-
-
Dave Hylands authored
-
- 20 Jul, 2014 2 commits
-
-
Damien George authored
Recent changes to builtin print meant that print was printing to the mp_sys_stdout_obj, which was sending data raw to the USB CDC device. The data should be cooked so that \n turns into \r\n.
-
Damien George authored
Fixes printing bugs introduced by cb66f41e.
-
- 19 Jul, 2014 3 commits
-
-
Paul Sokolovsky authored
And not system printf(), like it was before. For this, move pfenv_printf() from stmhal port to py/.
-
Damien George authored
With unicode enabled, this patch allows reading a fixed number of characters from text-mode streams; eg file.read(5) will read 5 unicode chars, which can made of more than 5 bytes. For an ASCII stream (ie no chars > 127) it only needs to do 1 read. If there are lots of non-ASCII chars in a stream, then it needs multiple reads of the underlying object. Adds a new test for this case. Enables unicode support by default on unix and stmhal ports.
-
Damien George authored
-
- 15 Jul, 2014 1 commit
-
-
blmorris authored
-
- 12 Jul, 2014 1 commit
-
-
blmorris authored
-
- 11 Jul, 2014 1 commit
-
-
blmorris authored
to allow these methods to transmit 16 bit addresses to an i2c device Add 'memaddr_use_16b' to qstrdefsport.h
-
- 07 Jul, 2014 1 commit
-
-
Damien George authored
-
- 06 Jul, 2014 1 commit
-
-
Dave Hylands authored
Once the code switches to using DMA, this can be removed.
-
- 03 Jul, 2014 1 commit
-
-
Damien George authored
See discussion in issue #50.
-
- 02 Jul, 2014 1 commit
-
-
Damien George authored
-
- 30 Jun, 2014 3 commits
-
-
Paul Sokolovsky authored
-
Dave Hylands authored
This fixes #733.
-
mux authored
* Fix #692
-
- 29 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
Based on forum post: http://forum.micropython.org/viewtopic.php?f=6&t=193
-
- 28 Jun, 2014 2 commits
-
-
Paul Sokolovsky authored
It defines types used by all other headers. Fixes #691.
-
Damien George authored
Unicode is disabled by default for now, since FileIO.read(n) is currently not implemented for text-mode files, and this is an often function.
-
- 27 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
As stack checking is enabled by default, ports which don't call stack_ctrl_init() are broken now (report RuntimeError on startup). Save them trouble and just init stack control framework in interpreter init.
-
- 26 Jun, 2014 2 commits
-
-
mux authored
-
Paul Sokolovsky authored
-