aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-13Correct PulseOut example code0.9.5Scott Shawcroft
2017-04-13atmel-samd: Turn off PulseIn interrupts on reset. Can hardfault otherwise.Scott Shawcroft
2017-04-13atmel-samd: Account for pending ticks in PulseIn. Fixes #116.Scott Shawcroft
2017-04-13esp8266: Don't reset TX and RX lines. The pullup is required forScott Shawcroft
the Adafruit Huzzah Breakout because it has a diode to protect against 5v logic which effectively blocks 1s and relies on the pull up to produce them.
2017-04-12atmel-samd: Rework status LED implementationScott Shawcroft
* Track status pin use by user code separately so it can take over the pins and then give them back. * Switch to hardware SPI for APA102 on Gemma and Trinket. * Merge microcontroller/types.h into microcontroller/Pin.h to better match approach going forwards.
2017-04-11atmel-samd: rename cplay_m0_flash to circuitplayground_express and update ↵Scott Shawcroft
for new rev (F).
2017-04-11atmel-samd: Reset PulseIn correctly on soft reset.Scott Shawcroft
2017-04-11atmel-samd: Fix PulseIn duration math to handle case when current us time is ↵Scott Shawcroft
after the last one but more than a ms has passed.
2017-04-10Split up nativeio.0.9.4Scott Shawcroft
This was done to allow greatly granularity when deciding what functionality is built into each board's build. For example, this way pulseio can be omitted to allow for something else such as touchio.
2017-03-28esp8266: Change nativeio.I2C to use bitbangio under the hood rather than ↵Scott Shawcroft
throwing an error.
2017-03-27atmel-samd: Update Feather M0 Express USB pid.0.9.3Scott Shawcroft
2017-03-27atmel-samd: Add message for when auto reset is off. Fixes #112Scott Shawcroft
2017-03-27Change to official Feather M0 Express branding.Scott Shawcroft
2017-03-25Add low-level OneWire support class.Scott Shawcroft
This class focuses on the timing sensitive parts of the protocol. Everything else will be done by Python code. This also establishes that its OK to back a nativeio class with a bitbang implementation when no hardware acceleration exists. When it does, then bitbangio should be used to explicitly bitbang a protocol.
2017-03-24Add PulseIn support which can be used to measure a series of pulse widths.0.9.2Scott Shawcroft
This is useful for infrared input and DHT sensors.
2017-03-10Add PulseOut which can pulse a PWMOut for IR remote transmission.Scott Shawcroft
2017-03-10esp8266: Turn off framebuf to get space.Scott Shawcroft
2017-03-10Fix duty_cycle constructor argument to PWMOut.Scott Shawcroft
2017-03-09atmel-samd: Turn on stack checking so infinite recursion doesn't completely ↵Scott Shawcroft
crash.
2017-03-07Update the Python intersphinx reference to Python 3 https.Scott Shawcroft
2017-03-07shared-bindings: Do a pass on the docs and make sure keyword only arguments ↵Scott Shawcroft
make sense and are documented correctly. Fixes #109
2017-03-07shared-bindings: Reenable struct_time. It was turned off when playing with ↵Scott Shawcroft
LTO and never re-enabled.
2017-02-28shared-bindings: Fix two more try_locks. Copy and paste failed me.0.9.1Scott Shawcroft
2017-02-27atmel-samd: Add USB HID mouse and keyboard support.Scott Shawcroft
2017-02-26atmel-samd: Use link time optimization to reduce code size of builds whichScott Shawcroft
share space with the file system. "Express" builds with SPI flash crash the compiler for some reason so its currently disabled for them.
2017-02-24py: Fix recursion exception.Scott Shawcroft
2017-02-24py: Fix varg helpers by adding vlist variant of mp_obj_new_exception_msgScott Shawcroft
2017-02-24atmel-samd: Fix linking by providing cpu info.Scott Shawcroft
2017-02-24Make slice make_new match mp_make_new_fun_t exactly, check the input type ↵Scott Shawcroft
and enable it for qemu tests.
2017-02-24Correct name of mp_raise_NotImplementedError to make error name.Scott Shawcroft
2017-02-24Make the build quieter by default.Scott Shawcroft
2017-02-24Make more type structures const to save RAM.Scott Shawcroft
2017-02-24Add indices() support to slice.Scott Shawcroft
2017-02-24Switch exception throwing to mp_raise helpers. It saves a little code space ↵Scott Shawcroft
each time to share the call.
2017-02-24atmel-samd: Switch to nano newlib and add size script to build.Scott Shawcroft
2017-02-22Throw an error when sleep time is negative.Scott Shawcroft
2017-02-22Check that neopixel write is actually given a DigitalInOut.Scott Shawcroft
2017-02-22ESP8266: Stop supporting 400khz neopixels through old esp module API.0.9.0Scott Shawcroft
It still accepts the parameter for backwards compatibility and to provide a good error when it can't work. Using the `neopixel_write` module instead is recommended because its available on all CircuitPython supported ports.
2017-02-21ESP8266: Add reset note to webrepl init.Scott Shawcroft
2017-02-19atmel-samd: Fix build by correcting internal neopixel writes.Scott Shawcroft
2017-02-19atmel-samd: Save a little space by tweaking error messages.Scott Shawcroft
2017-02-19atmel-samd: Remove support for UART REPL from Arduino Zero.Scott Shawcroft
2017-02-19Save space by only supporting 800khz neopixels.Scott Shawcroft
2017-02-19Two I2C fixes:Scott Shawcroft
1) Bus error will be thrown on read/write errors with errno set. (Read didn't used to fail at all.) 2) try_lock correctly returns boolean whether lock was grabbed. Fixes #87
2017-02-19Switch enum-like attributes to all caps and add print support for them. Make ↵Scott Shawcroft
room for this functionality by adding a shared __enter__ function object. #76
2017-02-19atmel-samd: Remove pin reference from AnalogOut error. Fixes #83Scott Shawcroft
2017-02-19Add print support to Pin. #83 #76Scott Shawcroft
2017-02-19Add CircuitPlayground, Trinket and Gemma to Travis build.Scott Shawcroft
2017-02-19atmel-samd: Stop calibrating the crystal for Gemma and Trinket. We need the ↵Scott Shawcroft
space for other code.
2017-02-19esp8266: Allow for MOSI or MISO only SPI. Fixes #65Scott Shawcroft