Scott Shawcroft
3ff53a64cb
Merge pull request #2181 from tannewt/update_frozen
...
Update frozen modules.
2019-09-30 14:23:05 -07:00
Scott Shawcroft
c12c837abd
Improve frozen prep to skip example subdirectories
2019-09-30 13:37:58 -07:00
Scott Shawcroft
060e81ded0
Fail when boards are missing too
2019-09-30 12:09:29 -07:00
Damien George
5716c5cf65
py/persistentcode: Bump .mpy version to 5.
...
The bytecode opcodes have changed (there are more, and they have been
reordered).
2019-09-26 16:39:37 +10:00
Josh Lloyd
7d58a197cf
py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions.
...
Fixes #5140 .
2019-09-26 16:04:56 +10:00
Damien George
1f7202d122
py/bc: Replace big opcode format table with simple macro.
2019-09-26 15:27:11 +10:00
Damien George
5889cf58db
py/bc0: Order opcodes into groups based on their size and format.
2019-09-26 15:27:10 +10:00
Scott Shawcroft
54b03a7476
When uploading release assets, ignore those already uploaded.
2019-09-14 13:05:52 -07:00
Dan Halbert
8f6267115c
Renumber only chosen USB interfaces; fix HID report ids
2019-09-09 15:12:06 -04:00
Damien George
c69f58e6b9
tools/mpy-tool.py: Fix freezing of non-bytecode funcs with settrace.
...
Only bytecode functions can be profiled at this stage. Native functions
(eg inline assembler) may not even have a valid prelude.
Fixes issue #5075 .
2019-09-06 23:55:15 +10:00
Scott Shawcroft
5e754f1694
Merge pull request #2121 from tannewt/markdown_autolink
...
Add support for converting autolinks to BBCode
2019-09-05 11:28:24 -07:00
Hierophect
96d1711296
Merge remote-tracking branch 'upstream/master' into stm32-ci-workflow
2019-09-05 13:36:23 -04:00
Dan Halbert
f3af2a6fb7
Merge remote-tracking branch 'adafruit/master' into choose-usb-devices-xac
2019-09-04 21:56:13 -04:00
Dan Halbert
195de97c67
use only one endpoint pair for MSC except on SAMD21
2019-09-04 21:45:16 -04:00
Scott Shawcroft
dab345ce58
Add support for converting autolinks to BBCode
2019-09-04 17:15:30 -07:00
Scott Shawcroft
ff3d04f4d1
Fix website updater for other users.
...
It broke with adafruit-blinka but works now.
2019-09-04 16:50:13 -07:00
Hierophect
e92a21cb0a
minor text fixes
2019-09-04 18:40:44 -04:00
Hierophect
0cd5f4c12b
remove redundant exclusion inclusion
2019-09-04 18:28:27 -04:00
Hierophect
e6f8ad65c1
add stm32 port to workflow
2019-09-04 18:10:37 -04:00
Dan Halbert
95a5a57f94
Merge remote-tracking branch 'adafruit/master' into choose-usb-devices-xac
2019-09-04 00:12:09 -04:00
Dan Halbert
94ba027544
simpler generation of HID device tables
2019-09-03 21:16:14 -04:00
Scott Shawcroft
949f8761b8
Add .hidden to TileGrid and Group
...
This allows for one to preserve ordering within a Group while
hiding something temporarily.
Fixes #1688
2019-09-03 16:15:27 -07:00
Dan Halbert
42f5edbd33
WIP
2019-09-03 14:44:46 -04:00
Damien George
b29fae0c56
py/bc: Fix size calculation of UNWIND_JUMP opcode in mp_opcode_format.
...
Prior to this patch mp_opcode_format would calculate the incorrect size of
the MP_BC_UNWIND_JUMP opcode, missing the additional byte. But, because
opcodes below 0x10 are unused and treated as bytes in the .mpy load/save
and freezing code, this bug did not show any symptoms, since nested unwind
jumps would rarely (if ever) reach a depth of 16 (so the extra byte of this
opcode would be between 0x01 and 0x0f and be correctly loaded/saved/frozen
simply as an undefined opcode).
This patch fixes this bug by correctly accounting for the additional byte.
.
2019-09-02 13:30:16 +10:00
Damien George
4691b43c8a
tools/mpy-tool.py: Add initial support for frozen with settrace.
2019-08-30 16:49:13 +10:00
Milan Rossa
498e35219e
tests: Add tests for sys.settrace feature.
2019-08-30 16:48:22 +10:00
Scott Shawcroft
6106909c10
Swap the CI to GitHub Actions from Travis
2019-08-27 19:53:54 -07:00
Scott Shawcroft
70680d5b22
EPaper displays work mostly.
2019-08-22 14:08:33 -07:00
Jim Mussared
0bd1eb80ff
qemu-arm: Add testing of frozen native modules.
...
- Split 'qemu-arm' from 'unix' for generating tests.
- Add frozen module to the qemu-arm test build.
- Add test that reproduces the requirement to half-word align native
function data.
2019-08-20 15:14:08 +10:00
Jim Mussared
4ab5156c01
tools/mpy-tool.py: Force native func alignment to halfword/word on ARM.
...
This is necessary for ARMV6 and V7. Without this change, calling a frozen
native/viper function that is misaligned will crash.
2019-08-20 15:13:17 +10:00
Dan Halbert
1a818c60cb
make translate again; make check-translate passes
2019-08-19 10:25:36 -04:00
Scott Shawcroft
26f64dd8ec
Merge remote-tracking branch 'adafruit/4.1.x' into merge_in_410
2019-08-05 17:53:08 -07:00
sommersoft
8eab946c5b
Merge pull request #2003 from C47D/travis_check_new_boards
...
Add check to travis to make sure new boards are built, fix #1886
2019-07-28 22:41:59 -05:00
C47D
7e4d7a5373
[travis check new boards] Fail in case of any missing boards
2019-07-25 16:11:45 -05:00
Damien George
4d94fae833
tools/pyboard.py: Add filesystem commands to ls/cat/cp/rm remote files.
...
Use "-f" to select filesystem mode, followed by the command to execute.
Optionally put ":" at the start of a filename to indicate that it's on the
remote device, if it would otherwise be ambiguous.
Examples:
$ pyboard.py -f ls
$ pyboard.py -f cat main.py
$ pyboard.py -f cp :main.py . # get from device
$ pyboard.py -f cp main.py : # put to device
$ pyboard.py -f rm main.py
2019-07-25 15:56:01 +10:00
C47D
8864cefba6
[travis check new boards] missing_boards as set
2019-07-23 13:03:29 -05:00
C47D
c316231dd2
[travis check new boards] Do not end test if there are missing boards
2019-07-23 13:02:07 -05:00
sommersoft
b630e561a7
exclude aliased boards from 'get_board_mapping()'
2019-07-21 12:13:13 -05:00
Carlos
d1fecf5025
Fix missing module sh and remove unused module re
2019-07-20 01:08:22 -05:00
Scott Shawcroft
6797ec6ed3
Add support for grayscale displays that are < 8 bit depth.
...
This also improves Palette so it stores the original RGB888 colors.
Lastly, it adds I2CDisplay as a display bus to talk over I2C. Particularly
useful for the SSD1306.
Fixes #1828 . Fixes #1956
2019-07-19 16:06:11 -07:00
C47D
22c265b170
[travis check new boards] Reduce code logic to exit with failure
2019-07-19 16:54:42 -05:00
C47D
fc1594104b
[travis new boards check] Exit with failure if a board in info isn't in travis
2019-07-19 12:59:04 -05:00
C47D
ae41bb369f
[travis new boards check] sort both lists of boards
2019-07-19 12:36:13 -05:00
C47D
b279d6b335
[travis new boards check] We now have two lists that contain the boards based on board_info and TRAVIS_BOARDS
2019-07-19 12:11:16 -05:00
C47D
a1db6c4379
[Draft] Add check to travis to make sure new boards are built, fix #1886
2019-07-19 10:01:35 -05:00
Scott Shawcroft
4a6bdb6fe4
Track a dirty area for in-memory bitmaps
...
This fixes the bug that bitmap changes do not cause screen updates
and optimizes the refresh when the bitmap is simply shown on the
screen. If the bitmap is used in tiles, then changing it will
cause all TileGrids using it to do a full refresh.
Fixes #1981
2019-07-18 16:47:28 -07:00
Tavish Naruka
7f97cc1940
Generate .hex for Blip.
2019-07-08 14:16:31 +05:30
Damien George
f073f2b543
tools: Add uf2conv.py from Microsoft/uf2 repository.
...
Repository https://github.com/Microsoft/uf2 commit
19615407727073e36d81bf239c52108ba92e7660
2019-07-01 17:18:44 +10:00
Radomir Dopieralski
7c908b08ee
Use FONTBOUNDINGBOX for font metrics
...
Instead of iterating over all the glyphs and calculating the maximum
width and height, use the FONTBOUNDINGBOX to determine the size of a
tile for terminalio.
This works better with fonts such as generated by FontForge, that don't
include the empty space in the glyph bitmap itself. It also lets the
font author specify vertical spacing they want.
I only tested this with the default font and with one I generated with
FontForge.
2019-06-30 01:10:47 +02:00
Jun Wu
b152bbddd1
py: Define EMIT_MACHINE_CODE as EMIT_NATIVE || EMIT_INLINE_ASM.
...
The combination MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM is used in
many places, so define a new macro for it.
2019-06-28 13:54:45 +10:00