Commit Graph

12431 Commits

Author SHA1 Message Date
Scott Shawcroft
a3a690dc01
Add pragma to ensure neopixel_write is always -Os 2018-11-13 10:56:00 -08:00
Scott Shawcroft
ed9db80760
Switch SAMD51 back to -Os
It messes up neopixel timing otherwise.

Fixes #1326
2018-11-13 10:43:18 -08:00
Dan Halbert
50f5d27c43
Merge pull request #1325 from tannewt/fix_overruns
Fix output overflow and make help translatable
2018-11-09 23:35:22 -05:00
Scott Shawcroft
d012fd1553
Only write to usb when its around. 2018-11-09 17:06:55 -08:00
Scott Shawcroft
355abc835e
Fix output overflow and make help translatable 2018-11-09 16:41:08 -08:00
Dan Halbert
97bc95183d
Merge pull request #1321 from tannewt/tinyusb_samd
Move atmel-samd to tinyusb and support nRF flash.
2018-11-09 15:56:29 -05:00
Scott Shawcroft
43f7ca7985
Incorporate feedback:
* Clean up board defines.
* Add flush on eject and stay ejected.
* Swith back to NONE protocol for CDC.
2018-11-09 11:33:56 -08:00
Noralf Trønnes
28383afa11 shared-module/os: Fix os.mkdir('a/b')
This fixes commit a99f9427420d("'/' and '\' are also acceptable ends of the path now") which broke mkdir.
The problem is where the directory name is a single letter like this:
>>> os.mkdir('a')
>>> os.mkdir('a/b')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 17] File exists
>>> os.mkdir('a/bb')
>>>

I wasn't smart enough to fix this in the oofatfs library, so I did it in the os shared module by
creating a path lookup function for the os methods that only deals with directories. I reverted
the library change introduced by the aforementioned commit.

This means that os.stat and os.rename can't handle trailing slashes. This is to avoid allowing
filenames with trailing slashes to pass through. In order to handle trailing slashes for these
it would be necessary to check if it really is a directory before stripping. I didn't do this
since the original issue was to make os.chdir tolerate trailing slashes.

There's an open MicroPython issue #2929 wrt. trailing slashes and mkdir.
2018-11-09 19:20:56 +01:00
Scott Shawcroft
688f0e388b
Update MKR1300 board definition too 2018-11-09 00:49:02 -08:00
Scott Shawcroft
be6b49c712
Add back internal flash header and slim it down. 2018-11-09 00:27:18 -08:00
Scott Shawcroft
168e23e466
Build refinement to handle warnings and quiet output 2018-11-09 00:11:43 -08:00
Scott Shawcroft
9d91111b1b
Move atmel-samd to tinyusb and support nRF flash.
This started while adding USB MIDI support (and descriptor support is
in this change.) When seeing that I'd have to implement the MIDI class
logic twice, once for atmel-samd and once for nrf, I decided to refactor
the USB stack so its shared across ports. This has led to a number of
changes that remove items from the ports folder and move them into
supervisor.

Furthermore, we had external SPI flash support for nrf pending so I
factored out the connection between the usb stack and the flash API as
well. This PR also includes the QSPI support for nRF.
2018-11-08 17:25:30 -08:00
Scott Shawcroft
d08747d374
Merge pull request #1319 from dhalbert/origin/arturo182_bleio_pr_1289
Resubmit PR #1289, "WIP: bleio rewrite" by @arturo182
2018-11-07 12:03:46 -08:00
Dan Halbert
64d457dad9 bring bleio PR up to date 2018-11-07 14:12:22 -05:00
Scott Shawcroft
283e07254e
Merge pull request #1311 from caternuson/iss1303_wavefile
Add channels and bits_per_sample to audioio.WaveFile
2018-11-05 15:41:16 -08:00
caternuson
55cbeb6fc6 in doc string as well 2018-11-05 14:49:24 -08:00
caternuson
85fbdefe77 change channels to channel_count 2018-11-05 08:05:43 -08:00
Scott Shawcroft
f24c225664
Merge pull request #1312 from dhalbert/adafruit_nrfx
Use adafruit/nrfx fork of NordicSemiconductor/nrfx
2018-11-04 11:42:12 -08:00
Scott Shawcroft
adf9b2108f
Merge pull request #1317 from ATMakersBill/serial_bytes_avail_backport
Adding the serial_bytes_available() method to the 3.x branch
2018-11-04 11:40:15 -08:00
Scott Shawcroft
6aca9762c9
Merge pull request #1313 from siddacious/master
adding support for the CP32-M4
2018-11-04 11:26:14 -08:00
Limor "Ladyada" Fried
e1531854fd
Merge pull request #1318 from dhalbert/trellis-dotstar-pins
fix Trellis M4 DotStar pin assignments.
2018-11-04 07:55:19 -08:00
Dan Halbert
a15ed0b912 Fix Trellis M4 DotStar pin assignments. 2018-11-04 00:07:42 -04:00
ATMakersBill
bd4188a092 adding changes to mpconfigboard.mk to reduce memory usage on CPX per @danh 2018-11-03 14:42:27 -04:00
ATMakersBill
4f2f571536 Adding the serial_bytes_available() method to the 3.x branch 2018-11-03 14:01:30 -04:00
Dan Halbert
fa1edb2a01
Merge pull request #1314 from dhalbert/3.x-frozen-before-lib
3.x: put .frozen before /lib in sys.path; update frozen libraries
2018-11-02 08:49:33 -04:00
Dan Halbert
4dfba2f8ac put .frozen before /lib in sys.path; update frozen libraries 2018-11-01 19:57:10 -04:00
Bryan Siepert
844b674a1e adding support for the CP32-M4 2018-11-01 09:42:48 -07:00
Dan Halbert
a0aba2b9c0
Merge pull request #1309 from siddacious/master
Updating devices.h to add new devices, fix a typo and address #1239
2018-11-01 08:25:55 -04:00
Dan Halbert
e203ce9ce5 Use adafruit/nrfx fork of NordicSemiconductor/nrfx 2018-10-31 23:18:59 -04:00
caternuson
46f1a0719e add channels and bits_per_sample to audioio.WaveFile 2018-10-31 18:08:10 -07:00
Bryan Siepert
dc82fd556b Updating devices.h to add new devices, fix a typo and address #1239 2018-10-31 01:54:09 -07:00
Dan Halbert
7dc6b1da08
Merge pull request #1308 from Retoc/master
added more german translations
2018-10-30 23:19:49 -04:00
Retoc
1a3d467ba4 added more german translations 2018-10-31 00:41:11 +01:00
Dan Halbert
450c06ee09
Merge pull request #1302 from mchobby/master
fr.po
2018-10-28 15:51:53 -04:00
MCHobby
efaf09da31
Merge pull request #1 from mchobby/mchobby-patch-1
update fr.po
2018-10-28 14:47:20 +01:00
MCHobby
c7deb37d36
update fr.po
Add some French translation
2018-10-28 14:46:33 +01:00
Dan Halbert
bd79c0c0de
Merge pull request #1295 from ElectronicCats/mkr1300
Add board MKR1300 by Arduino
2018-10-26 20:15:20 -04:00
Dan Halbert
20bc52ae59
Merge pull request #1301 from ElectronicCats/third-party
Add new list for "third-party" or "non-Adafruit" boards to README
2018-10-26 20:14:04 -04:00
Scott Shawcroft
893bde1f78
Longer underline 2018-10-26 11:35:55 -07:00
Benjamin Shockley
cd0b2e31aa
Update mpconfigboard.h 2018-10-26 12:20:15 -05:00
Benjamin Shockley
aec39fd027 Updated to new D21G18 MCU
Updated MIni SAM M0 to new D21G18A MCU to match layout/design of M4
2018-10-26 12:09:59 -05:00
sabas1080
7a144413d1 Add "third-party" or "non-Adafruit" boards to README 2018-10-25 17:37:59 -05:00
Scott Shawcroft
fd89cdd197
Merge pull request #1236 from nickzoic/circuitpython/nickzoic/703-wiznet-5500-native
Circuitpython/nickzoic/703 wiznet 5500 native
2018-10-25 15:07:00 -07:00
sabas1080
ba98d4ce9c minor changes in auto-built 2018-10-25 16:11:49 -05:00
Nick Moore
bbf8334166 Fix build without network code 2018-10-25 13:14:27 +11:00
Nick Moore
c9279e8d3a Update translations 2018-10-25 12:54:39 +11:00
Nick Moore
f6482699a0 Merge remote-tracking branch 'origin/master' into circuitpython/nickzoic/703-wiznet-5500-native 2018-10-25 12:20:50 +11:00
Nick Moore
9c904358a9 Merge branch 'circuitpython/nickzoic/703-wiznet-5500-native-dhcp' into circuitpython/nickzoic/703-wiznet-5500-native 2018-10-25 11:30:59 +11:00
Nick Moore
b714f5d650 Add "dhcp" property to turn DHCP on and off 2018-10-25 11:29:27 +11:00
Scott Shawcroft
dc9d338612
Merge pull request #1167 from notro/cpython_stdlib
Support CPython standard library
2018-10-24 12:57:41 -07:00