summaryrefslogtreecommitdiff
path: root/shared-module
AgeCommit message (Collapse)Author
2018-11-27Merge pull request #1323 from notro/os_mkdir_a_bDan Halbert
shared-module/os: Fix os.mkdir('a/b')
2018-11-09shared-module/os: Fix os.mkdir('a/b')Noralf Trønnes
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-09Build refinement to handle warnings and quiet outputScott Shawcroft
2018-11-08Move atmel-samd to tinyusb and support nRF flash.Scott Shawcroft
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-07bring bleio PR up to dateDan Halbert
2018-10-31add channels and bits_per_sample to audioio.WaveFilecaternuson
2018-10-25Add "dhcp" property to turn DHCP on and offNick Moore
2018-10-21bleio: Remove redundant struct fieldarturo182
2018-10-21nrf: Cleanup of the ble driverarturo182
Moved the functions to classes that they belong to.
2018-10-21nrf: Move the Peripheral class to bleio as Devicearturo182
This was the last class from ubluepy and so that module is now gone. The Device class offers both Peripheral and Central functionality. See the inline docs for more info.
2018-10-21nrf: Move the Service class from ubluepy to the shared bleio modulearturo182
2018-10-21nrf: Move the Characteristic class from ubluepy to the shared bleio modulearturo182
2018-10-21bleio: Remove SAMD mention in include guardarturo182
Damn copy-paste!
2018-10-21bleio: Move the Scanner class to a shared modulearturo182
2018-10-21bleio: Move ScanEntry to shared module and add a new AdvertisementData classarturo182
2018-10-21bleio: Add a new Address classarturo182
Use the new in the Adapter singleton.
2018-10-16timer ticks for DHCP state machine for wiznetNick Moore
2018-10-16fixupNick Moore
2018-10-16add mechanism for timer ticks in NICsNick Moore
2018-10-16header file cleanup for wiznetNick Moore
2018-10-11fix doc comments, translations againNick Moore
2018-10-11Split wiznet driver into shared-bindings vs shared-moduleNick Moore
2018-10-11Merge remote-tracking branch 'origin/master' into ↵Nick Moore
circuitpython/nickzoic/703-wiznet-5500-native
2018-10-11network module c api into shared-moduleNick Moore
2018-10-09Rename stop to stop_voice in case we want stop to stop everything later.Scott Shawcroft
2018-10-09move random mac address function into network moduleNick Moore
2018-10-09Split wiznet.WIZNET5K off into its own fileNick Moore
2018-10-05Fix M0 mathScott Shawcroft
2018-10-05Fix voice ending in the middle of a buffer.Scott Shawcroft
2018-10-05Introduce audioio.Mixer which can mix multiple audio samplesScott Shawcroft
to produce a single sample. Only works with 16 bit samples on the M4. Fixes #987
2018-10-04modify modnetwork and modusocket for circuitpythonNick Moore
2018-10-04Copy wiznet module across from MicroPythonNick Moore
2018-09-13More explicit init in GroupScott Shawcroft
2018-09-12Add OnDiskBitmap which loads pixel data straight from disk.Scott Shawcroft
Also, renamed Sprite's palette to pixel_shader so it can be anything that produces colors based on values (including color values). Added a ColorConverter that converts RGB888 (found in bitmaps) to RGB565 for the display. Fixes #1182
2018-09-06Minor tweaks based on feedbackScott Shawcroft
2018-08-31Tweaks based on feedbackScott Shawcroft
2018-08-31Introduce displayio to render graphics to displays.Scott Shawcroft
It's designed to minimize RAM footprint by using Sprites to represent objects on the screen. The object model also facilitates partial screen updating which reduces the bandwidth needed to display. This is all handled in C. Python simply manipulates the objects with the ability to synchronize to frame timing.
2018-08-16Compress all translated strings with Huffman coding.Scott Shawcroft
This saves code space in builds which use link-time optimization. The optimization drops the untranslated strings and replaces them with a compressed_string_t struct. It can then be decompressed to a c string. Builds without LTO work as well but include both untranslated strings and compressed strings. This work could be expanded to include QSTRs and loaded strings if a compress method is added to C. Its tracked in #531.
2018-08-07Support internationalisation.Scott Shawcroft
2018-07-31Merge pull request #1075 from tannewt/more_mp_raiseDan Halbert
Use more mp_raise_* to save 28 bytes code size.
2018-07-31Use more mp_raise_* to save 28 bytes code size.Scott Shawcroft
2018-07-23WIP: complete manual inspection of all significant changesDan Halbert
2018-07-16Merge branch 'master' into micropython-25ae98f-mergeDan Halbert
2018-07-16Merge 3.0.0 final bugfixes and changes to masterDan Halbert
2018-07-13compiles and runs; hangs on import storage;storage.VfsFat.<tab>Dan Halbert
2018-06-21allow '/' to be mounted on '/' from Python codeDan Halbert
2018-06-15do not permit mounting over a directory or file with the same name as the ↵Dan Halbert
mount point
2018-06-15fix os.listdir() when current dir is '/'Dan Halbert
2018-06-14Fix playing audio from SD cardDan Halbert
2018-05-30Add gamepad_singleton to root pointersRadomir Dopieralski