sommersoft
c70acab8b3
updated README; added git submodule info
2018-03-30 22:16:36 +00:00
sommersoft
6ee573c7c9
Merge branch 'master' into super_status
2018-03-30 14:27:39 -05:00
Dan Halbert
bee0d2edb4
Merge pull request #710 from jepler/assertion-failures-to-exceptions
...
Assertion failures to exceptions
2018-03-30 13:47:55 -04:00
Jeff Epler
ff06a45599
Fix assertion failures in super_attr
...
micropython: ../../py/objtype.c:1100: super_attr: Assertion `MP_OBJ_IS_TYPE(self->type, &mp_type_type)' failed.
e.g., when making calls like
super(1, 1).x
2018-03-29 06:42:10 -05:00
Jeff Epler
6da8d7c465
Fix assertion failures in mp_obj_new_type
...
Fixes the following assertion failures when the arguments to type()
were not of valid types:
micropython: ../../py/objtype.c:984: mp_obj_new_type: Assertion `MP_OBJ_IS_TYPE(bases_tuple, &mp_type_tuple)' failed.
micropython: ../../py/objtype.c:994: mp_obj_new_type: Assertion `MP_OBJ_IS_TYPE(items[i], &mp_type_type)' failed.
e.g., when making calls like
type("", (), 3)
type("", 3, {})
2018-03-29 06:42:10 -05:00
Jeff Epler
a55988a547
Fix assertion failure in mpz_divmod_inpl
...
.. turning this from an assertion failure into an exception:
pow(1,1,0)
2018-03-29 06:42:10 -05:00
Scott Shawcroft
676ed4e199
Merge pull request #724 from tannewt/fix_freetouch_submodule
...
Remove freetouch files that were accidentally checked in and
2018-03-28 14:24:32 -07:00
Scott Shawcroft
7b2215a27c
Merge pull request #723 from jepler/high-quality-float-hash
...
Enable high-quality float hash
2018-03-28 14:16:32 -07:00
Scott Shawcroft
19b0b414e6
Remove freetouch files that were accidentally checked in and
...
readd the submodule.
2018-03-28 14:04:53 -07:00
Jeff Epler
abec199c19
Enable high-quality float hash
...
This appears to have a relatively small impact on flash usage but
fixes some pathological slow behavior putting floats in dicts or sets.
Closes : #704
2018-03-27 21:56:30 -05:00
Scott Shawcroft
6711c5c90d
Merge pull request #712 from jepler/fslabel
...
Add ability to get, set filesystem label from CircuitPython
2018-03-27 19:51:48 -07:00
Jeff Epler
34f5498760
Document storage.VfsFat more thoroughly
2018-03-27 21:28:19 -05:00
Jeff Epler
9c47fd9c13
Specifically give a better error message for setlabel on RO fs
2018-03-27 21:28:19 -05:00
Jeff Epler
fe7f405fc7
Add VfsFat.label property
...
These allow accessing the filesystem label. For instance,
in boot.py, you can set the label on the built-in storage with:
storage.remount('/', False)
storage.getmount('/').label = "NEWLABEL"
storage.remount('/', True)
Users with multiple CIRCUITPY boards may find it desirable to
choose a different label for each board they own.
2018-03-27 21:28:18 -05:00
Jeff Epler
c08f5a3a00
Add storage.getmount to retrieve the mount object associated with a path
2018-03-27 21:28:18 -05:00
Jeff Epler
968763aa1d
factor out storage_object_from_path
2018-03-27 21:28:18 -05:00
Dan Halbert
1eba580443
Merge pull request #722 from adafruit/tannewt-patch-7
...
Add four missing drivers
2018-03-27 17:53:43 -04:00
Scott Shawcroft
f4563d11d1
Add four missing drivers
2018-03-27 14:25:14 -07:00
Dan Halbert
4c2f729a7a
Merge pull request #713 from jepler/lto-type-diagnostic-bis
...
Allow building on gcc 5.4, while preserving ability to build with 7.2
2018-03-27 09:28:41 -04:00
Scott Shawcroft
4517ab8ba4
Merge pull request #709 from jepler/core-class-superproperty
...
Make test core_class_superproperty.py succeed
2018-03-26 21:59:05 -07:00
Kattni
77938db8c8
Merge pull request #719 from tannewt/fix_i2c_hang
...
Fix I2C init hang when the SCL pin is pulled low.
2018-03-26 20:08:14 -04:00
Dan Halbert
4190aa2eed
Merge pull request #715 from jepler/array-operation-restrictions-bis
...
Remove 'O', 'P' support in arrays
2018-03-26 20:01:34 -04:00
Jeff Epler
047a4f59c5
This test now passes, make it run regularly
2018-03-26 18:47:06 -05:00
Scott Shawcroft
cebcec5e63
Check for floating pins by pulling them low briefly before testing their values.
2018-03-26 16:32:16 -07:00
Jeff Epler
355bf8b553
Conditionally compile out nonstandard array/struct typecodes
...
.. defaulting to off for circuitpython-supported boards, on for others.
.. fixing up the tests that fail when it is turned off, so that they skip
instead of failing
2018-03-26 18:13:49 -05:00
Scott Shawcroft
25ba8ee489
Add an s because grammar.
2018-03-26 15:21:08 -07:00
Scott Shawcroft
37538fc0e7
Fix I2C init hang when the SCL pin is pulled low.
...
We added a check to make sure the pins are in a high state before
initing the bus. This leads to a friendly error message when someone
forgets to add the pull up resistors to their circuit.
2018-03-26 15:13:52 -07:00
Scott Shawcroft
ea39f4378e
Merge pull request #698 from sommersoft/repl_fix
...
Fix 128 Character Max Paste Into REPL
2018-03-26 13:02:43 -07:00
sommersoft
9bd55cf4c7
minor cleanup
2018-03-26 08:14:37 -05:00
sommersoft
23009fdd63
future-proof for buffer size changes
2018-03-26 06:25:04 +00:00
Dan Halbert
8b6aeb9e19
Merge pull request #702 from jepler/issue689bis
...
correct typo in filename
2018-03-25 23:58:00 -04:00
Dan Halbert
df731884a6
Merge pull request #708 from jepler/cpu-uid-nibbles
...
Don't lose half of the processor's serial number
2018-03-25 23:53:02 -04:00
Jeff Epler
d57397f9c8
Remove an unneeded -Wno-error=lto-type-mismtach
2018-03-25 22:04:15 -05:00
Jeff Epler
74fefe45a4
super(): Do the same lookup tasks as regular getattr
...
.. in the presence of properties and descriptors
2018-03-25 15:11:40 -05:00
Jeff Epler
922b7c3131
Don't assume the type of the prop->proxy objects
...
This fixes a crash running the cpydiff/core_class_superproperty.py
test, but it does not fix the difference to cpython3.
Closes : #705
2018-03-25 15:11:30 -05:00
Jeff Epler
c0029e1d97
Don't lose half of the processor's serial number
...
Before this change, `microcontroller.cpu.uid` returned values
where the top 4 bits of each byte were zero, because of
an incorrect bitmask used in this function.
2018-03-25 13:01:04 -05:00
Dan Halbert
31f5b6a238
WIP: simple working HID
2018-03-24 18:29:12 -04:00
Jeff Epler
d80e54458d
correct typo in filename
2018-03-24 10:44:24 -05:00
sommersoft
6205ed9a0c
updated cdc_enabled; now more dynamic status return
2018-03-24 03:42:58 +00:00
sommersoft
ef16109c5d
updated with requested changes
2018-03-24 00:55:48 +00:00
Scott Shawcroft
fa88446679
Merge pull request #697 from jepler/issue501
...
extmod/vfs_fat_file: Implement SEEK_CUR for non-zero offset.
2018-03-23 14:48:41 -07:00
Scott Shawcroft
8d376a3efb
Merge pull request #693 from jepler/issue236
...
Implement * and *= for array.array
2018-03-23 14:46:03 -07:00
sommersoft
f237657e5e
extended buffer check to usb_cdc_background
2018-03-23 18:41:27 +00:00
Dan Halbert
ce8f7e69bf
Merge pull request #700 from adafruit/tannewt-patch-6
...
Update USB PID
2018-03-23 13:25:39 -04:00
Scott Shawcroft
63d826a52a
Update USB PID
2018-03-23 09:34:02 -07:00
sommersoft
ccbe557e30
removed leftover debugging bits
2018-03-23 15:45:30 +00:00
sommersoft
d434635822
add buffer check before triggering new usb read
2018-03-23 15:07:02 +00:00
Ayke van Laethem
fa55b15ac6
extmod/vfs_fat_file: Implement SEEK_CUR for non-zero offset.
...
CPython doesn't allow SEEK_CUR with non-zero offset for files in text mode,
and uPy inherited this behaviour for both text and binary files. It makes
sense to provide full support for SEEK_CUR of binary-mode files in uPy, and
to do this in a minimal way means also allowing to use SEEK_CUR with
non-zero offsets on text-mode files. That seems to be a fair compromise.
2018-03-23 09:19:56 -05:00
Dan Halbert
261586518a
Merge pull request #694 from tannewt/feather_m4
...
Add Feather M4 Express support.
2018-03-23 09:16:10 -04:00
Jeff Epler
cdb83b18ec
Implement * and *= for array.array
2018-03-23 07:37:07 -05:00