summaryrefslogtreecommitdiff
path: root/shared-bindings
AgeCommit message (Collapse)Author
2018-06-08Prevent freezing USB during high frequency PulseIn.Scott Shawcroft
We now track the last time the background task ran and bail on the PulseIn if it starves the background work. In practice, this happens after the numbers from pulsein are no longer accurate. This also adjusts interrupt priorities so most are the lowest level except for the tick and USB interrupts. Fixes #516 and #876
2018-06-06Fixed documentation formatting for RTDKattni Rembor
2018-06-01Adapt for feedback and hack around pIRkey size constraint.Scott Shawcroft
2018-06-01atmel-samd: Add rotary encoder support.Scott Shawcroft
Fixes #283
2018-06-01atmel-samd: Re-org helper peripheral files into their own subdirectory.Scott Shawcroft
Ideally in the future they won't depend on ASF4 or MicroPython.
2018-05-30Add gamepad_singleton to root pointersRadomir Dopieralski
2018-05-30Make the gamepad singleton long-livedRadomir Dopieralski
So that it is not later moved.
2018-05-23Remove volatile from the gamepad structRadomir Dopieralski
2018-05-23Raise an error if more than 8 buttons passed to gamepadRadomir Dopieralski
2018-05-23Avoid uninitialized gamepad on exceptionRadomir Dopieralski
Raise exceptions before the gamepad_singleton is created. Also, use mp_raise for creating the exceptions.
2018-05-23Make gamepad.get_pressed work when gamepad was created from frozen codeRadomir Dopieralski
For some reason, when the GamePad is created from frozen code, the get_pressed method would always return 0. This fixes it, and makes it work properly no matter how the object was created.
2018-05-23Cache pullup state in gamepadRadomir Dopieralski
Don't check the pin's pull direction on every tick, instead cache it at the beginning. Also avoid a "can't get pull of output pin" error when one of the pins passed is in output mode.
2018-05-19Merge pull request #846 from notro/epoch1970Scott Shawcroft
time: Use 1970 epoch
2018-05-19fix doc error in audioOut.cjerryneedell
fixes #851
2018-05-18time: Use 1970 epochNoralf Trønnes
Use UNIX epoch to match CPython. This overflows small int so time.{time,localtime,mktime} is only supported with long int. Also remove some comment cruft in time_time().
2018-05-16Merge pull request #838 from rhooper/masterScott Shawcroft
add supervisor.reload() to soft reboot from code
2018-05-16Rephrase the docScott Shawcroft
2018-05-14move reload exception to reload.cRoy Hooper
2018-05-14Rename reload_next_character to reload_requested to make it match it's ↵Roy Hooper
intended use
2018-05-14Initial implementation of supervisor.reload()Roy Hooper
2018-05-13 add timeout keyword to I2C - for bitbangio - ignored for busioJerry Needell
2018-05-09remove unnecessary commentdean
2018-05-09DM: add kwargs to bitbangio spidean
2018-05-08Make resume idempotent (allowing you to call it twice without complaining.)Scott Shawcroft
2018-05-08Tweak exception message.Scott Shawcroft
2018-05-08Add pause/resume control to AudioOut and I2SOutScott Shawcroft
Fixes #808
2018-05-06docs: fix references to uhashlibJeff Epler
2018-05-03docs: fix references to ubinasciiJeff Epler
2018-05-01Re-enable PDMIn without ASF and using the helpers added withScott Shawcroft
I2SOut. The API is almost the same except the frequency attribute has been renamed to sample_rate so that its less likely to be confused with frequencies within the audio itself. Fixes #263.
2018-04-16Merge pull request #745 from notro/time_rtcScott Shawcroft
RFC: Add rtc module
2018-04-16Remove "Get or set"Scott Shawcroft
2018-04-16Add a table of contents reference to RTCScott Shawcroft
2018-04-16Add rtc moduleNoralf Trønnes
Add an rtc module that provides a singleton RTC class with - a datetime property to set and get time if the board supports it. - a calbration property to adjust the clock. There's also an rtc.set_time_source() method to override this RTC object using pure python. The time module gets 3 methods: - time.time() - time.localtime() - time.mktime() The rtc timesource is used to provide time to the time module. lib/timeutils is used for time conversions and thus only supports dates after 2000.
2018-04-13Correct example. Thanks @jepler!Scott Shawcroft
2018-04-13Turn on nvm in 3.0.Scott Shawcroft
Its 256b on M0 and 8k on M4 to match flash erase sizes. Fixes #758
2018-04-13Tweaks based on dhalbert's feedback.Scott Shawcroft
2018-04-12Add audio output support!Scott Shawcroft
This evolves the API from 2.x (and breaks it). Playback devices are now separate from the samples themselves. This allows for greater playback flexibility. Two sample sources are audioio.RawSample and audioio.WaveFile. They can both be mono or stereo. They can be output to audioio.AudioOut or audiobusio.I2SOut. Internally, the dma tracking has changed from a TC counting block transfers to an interrupt generated by the block event sent to the EVSYS. This reduces the overhead of each DMA transfer so multiple can occure without using up TCs. Fixes #652. Fixes #522. Huge progress on #263
2018-04-10esp8266 and nrf: raise NotImplementedErrorDan Halbert
2018-04-09add storage.erase_filesystem() to erase and reformat CIRCUITPYDan Halbert
2018-04-08Merge pull request #628 from sommersoft/super_statusScott Shawcroft
Added Function To Check the Serial Connection From CircuitPython Layer
2018-04-08Merge branch 'master' into 3.0_hidDan Halbert
2018-04-06Merge branch 'super_status' of https://github.com/sommersoft/circuitpython ↵sommersoft
into super_status
2018-04-06supervisor/Runtime: updated documentation for 'no disconnect'sommersoft
2018-04-05RunMode: Fix repr(RunMode.BOOTLOADER)Jeff Epler
2018-04-02Merge branch 'master' into 3.0_hidDan Halbert
2018-03-31Add a type check to the gamepad moduleRadomir Dopieralski
Make sure that all the arguments passed are indeed DigitalInOut. This avoids crashes when the users pass something else.
2018-03-30WIP: works with just keyboard but not complex report descriptorDan Halbert
2018-03-30Merge branch 'master' into super_statussommersoft
2018-03-27Document storage.VfsFat more thoroughlyJeff Epler
2018-03-27Add storage.getmount to retrieve the mount object associated with a pathJeff Epler