Commit Graph

12100 Commits

Author SHA1 Message Date
Scott Shawcroft
dc9d338612
Merge pull request #1167 from notro/cpython_stdlib
Support CPython standard library
2018-10-24 12:57:41 -07:00
Dan Halbert
7e295973db
Merge pull request #1298 from Senuros/master
Added more german translation strings, fixed some existing translations
2018-10-24 15:13:28 -04:00
Noralf Trønnes
d882ff6328 samd51: Set stack size to 8k
This is necessary in order to run unittest.
Heavy tests like those in the stdlib need 12-14k.
2018-10-24 19:33:01 +02:00
Noralf Trønnes
1b86e5fc83 samd51: Enable functionality to support CPython stdlib
This enables various things in order to support the CPython standard library.

MICROPY_PY_BUILTINS_NOTIMPLEMENTED:
Support NotImplemented for easy conversion of stdlib.
It doesn't do fallbacks though, only raises TypeError.

MICROPY_PY_COLLECTIONS_ORDEREDDICT:
collections.OrderedDict

MICROPY_PY_FUNCTION_ATTRS:
Support function.__name__ for use as key in the function attribute workaround.

MICROPY_PY_IO:
uio module: BytesIO, FileIO, StringIO, TextIOWrapper
Also add 'io' alias.

MICROPY_PY_REVERSE_SPECIAL_METHODS:
Support the __r*__ special methods.

MICROPY_PY_SYS_EXC_INFO:
sys.exc_info() used by unittest when collecting exceptions.

MICROPY_CPYTHON_COMPAT:
Some of the things it adds:

>>> object.__init__
<function>
>>> object.__new__
<function>
>>> object.__class__
<class 'type'>
>>> object().__class__
<class 'object'>
>>> object.__name__
'object'

>>> 'Hello'.encode()
b'Hello'
>>> b'Hello'.decode()
'Hello'

Named tuple field names from string:
namedtuple('Point', 'x y')
2018-10-24 19:33:01 +02:00
Noralf Trønnes
cec9a69a15 samd51: Make errno, os, and time module aliases
Add alias for uerrno so the user doesn't have to know about the
CircuitPython special names for the module.

Make os and time weak modules (aliases) making it possible to add
functionality to those modules written in python.

Example:
'import os' will now look in the path for an os module and if not found
it will import the builtin module. An os module written in python will
import the builtin module through its name prefixed with an underscore
(_os) following the C module naming practice in CPython.

Also right align the macro values to increase readability making it
easier to compare the values for samd21 and samd51. Even the longest
macro from py/mpconfig.h will fit with this alignment.
2018-10-24 19:31:53 +02:00
Senuros
fbadfd5998 added more german translation strings, fixed some existing translation strings 2018-10-24 11:39:16 +02:00
Dan Halbert
5360a41618
Merge pull request #1296 from JoshuaLowe1002/master
Update README to include missing boards
2018-10-23 20:54:40 -04:00
Joshua Lowe
e02811054e
Update README.rst 2018-10-23 18:17:50 +01:00
Dan Halbert
09c44743b0
Merge pull request #1282 from tannewt/frozen_debug
Add debug info to the generated frozen_mpy.c
2018-10-23 12:32:45 -04:00
Joshua Lowe
1936cd3f38
Update README.rst 2018-10-23 17:30:53 +01:00
Joshua Lowe
cb47d9edee
Update README.rst 2018-10-23 17:28:30 +01:00
Joshua Lowe
41f62d84cb
Update README.rst 2018-10-23 17:27:54 +01:00
Joshua Lowe
59e43a2be4
Update README to include Hallowing 2018-10-23 16:05:07 +01:00
Scott Shawcroft
554f82fe9b
Merge pull request #1286 from klardotsh/topic-nrf52840-mdk
Add support for MakerDiary nRF52840 MDK board
2018-10-22 17:47:14 -07:00
Scott Shawcroft
74e01423eb
Merge pull request #1256 from C47D/es_lang_unix
[Spanish - WIP] Translation of Unix/py directories
2018-10-22 17:45:14 -07:00
Scott Shawcroft
b6951007b0
Merge pull request #1288 from C47D/es_update
[locale\es] Keep already translated strings up to date
2018-10-22 17:43:35 -07:00
Scott Shawcroft
dcb59178f8
Merge pull request #1290 from jepler/time-monotonic-ns
shared-bindings/time: introduce time.monotonic_ns
2018-10-22 17:41:06 -07:00
Carlos
71ac9d16a7 [locale\es.po] Add missing \n 2018-10-21 11:56:05 -05:00
Carlos
c16ef428ab [locale\es.po] Address @sabas1080 recommendations 2018-10-21 11:38:16 -05:00
Jeff Epler
ec1aec1921 shared-bindings/time: introduce time.monotonic_ns
This is intended to be compatible with Python 3.7's time.monotonic_ns.
The "actual resolution" is 1ms due to this being the unit at which
common_hal_time_monotonic ticks.

Closes #519
2018-10-21 10:22:52 -05:00
Carlos
aeb5385217 [locale\es] Keep already translated strings up to date 2018-10-20 19:46:17 -05:00
Josh Klar
4a40919228
Make sure port is built as an NRF hex correctly 2018-10-20 03:36:55 -07:00
Josh Klar
aefabc5353
Update docs to reflect proper size of device 2018-10-20 03:29:20 -07:00
Josh Klar
4c75a60bd3
Declobber a DEFINE 2018-10-20 02:57:17 -07:00
Josh Klar
99edeed2e7
Build this thing! 2018-10-20 02:43:14 -07:00
Josh Klar
16ca9c8c7c
Makefile fixes and some docs 2018-10-20 02:43:13 -07:00
Josh Klar
3d7b96aeb1
Add board and pin defs for MakerDiary NRF52840 MDK 2018-10-20 02:43:12 -07:00
Scott Shawcroft
b4dcbb79b2
Add back printing out code info. Whoops! 2018-10-18 14:23:17 -07:00
Scott Shawcroft
cb0126131a
Use python3 for mpy-tool 2018-10-18 10:37:42 -07:00
Scott Shawcroft
4f9c8b7361
Add debug info to the generated frozen_mpy.c
It adds size info and uses macros for byte code to make it more
readable.
2018-10-17 17:45:47 -07:00
Scott Shawcroft
b436666e85
Merge pull request #1272 from sajattack/battery
add pin def for BAT
2018-10-17 12:15:38 -07:00
Dan Halbert
298756eef8
Merge pull request #1280 from tannewt/precondition_dac
Ramp values to and from a default value while active.
2018-10-17 15:00:11 -04:00
Scott Shawcroft
8161178415
Merge pull request #1275 from ElectronicCats/board-meowmeow
Added board Meow Meow by Electronic Cats
2018-10-17 11:41:57 -07:00
Scott Shawcroft
4eb1fe18e5
Tweaks from feedback:
* default_value is now quiescent_value
* Use step = -step format for sign switch
* Add note about analogout_reset being empty
2018-10-17 11:31:08 -07:00
Scott Shawcroft
c209165d43
Ramp values to and from a default value while active.
This reduces the popping sound on initial playback of an audio
sample.

The M4 DAC has a pop on startup that cannot be prevented. It also
does not allow readback so current values of the DAC are ignored.

Fixes #1090
2018-10-16 16:23:29 -07:00
Paul Sajna
089e2cc099 remove BATTERY from itsybitsy 2018-10-16 14:55:21 -07:00
Kattni
b24fdcab35
Merge pull request #1278 from dhalbert/update-frozen-for-alpha.2
Update frozen libraries for 4.0.0-alpha.2
2018-10-16 14:58:57 -04:00
sabas1080
6a1a2c7c7b add auto-built by Travis 2018-10-16 13:51:37 -05:00
Dan Halbert
ab02a034f6 Update frozen libraries for 4.0.0-alpha.2 2018-10-16 14:08:54 -04:00
Scott Shawcroft
c69b67f453
Merge pull request #1277 from dhalbert/nrf-pulseout
PulseOut working
2018-10-16 10:19:55 -07:00
Dan Halbert
b3c7746a7f fix copyright notice 2018-10-16 11:09:37 -04:00
Dan Halbert
2262efc311 PulseOut working 2018-10-16 11:05:02 -04:00
Dan Halbert
fe86731057
Merge pull request #1276 from C47D/es_mixer
[ES] Translate strings on Mixer module
2018-10-15 23:27:59 -04:00
Carlos
f6c0a23fa8 Translate strings on Mixer module 2018-10-15 21:41:05 -05:00
sabas1080
c103a05579 Add board Meow Meow by Electronic Cats
https://github.com/ElectronicCats/MeowMeow
2018-10-15 19:17:04 -05:00
Paul Sajna
1447df3fa6 change BAT to BATTERY 2018-10-14 23:34:49 -07:00
Scott Shawcroft
5cf8b998d1
Merge pull request #1271 from sajattack/master
Increase clone depth. Fixes #1247
2018-10-14 23:30:11 -07:00
Paul Sajna
f1028b5f96 add pin def for BAT 2018-10-13 15:53:22 -07:00
Paul
88af5815ee
Increase clone depth (#1247) 2018-10-13 09:51:29 -07:00
Sabas
c8d0509eb2
Merge pull request #1 from adafruit/master
Update
2018-10-11 23:04:53 -05:00