summaryrefslogtreecommitdiff
path: root/atmel-samd/samdneopixel.c
AgeCommit message (Collapse)Author
2016-11-21This introduces an alternative hardware API called nativeio structured ↵Scott Shawcroft
around different functions that are typically accelerated by native hardware. Its not meant to reflect the structure of the hardware. Docs are here: http://tannewt-micropython.readthedocs.io/en/microcontroller/ It differs from upstream's machine in the following ways: * Python API is identical across ports due to code structure. (Lives in shared-bindings) * Focuses on abstracting common functionality (AnalogIn) and not representing structure (ADC). * Documentation lives with code making it easy to ensure they match. * Pin is split into references (board.D13 and microcontroller.pin.PA17) and functionality (DigitalInOut). * All nativeio classes claim underlying hardware resources when inited on construction, support Context Managers (aka with statements) and have deinit methods which release the claimed hardware. * All constructors take pin references rather than peripheral ids. Its up to the implementation to find hardware or throw and exception.
2016-10-28atmel-samd: Rework tick timer to use TC5 and support neopixel status LED.Scott Shawcroft
The tick timer needed to be reworked because the ASF delay functions also use the SysTick timer. Now, it uses TC5 and calls out to the autoreset logic every tick. Fixes #43. Added neopixel status colors and corrected the latch time from ms to us. Fixes #42.
2016-10-13atmel-samd: Implement time.ticks_ms function using SysTick timer, add global ↵Tony DiCola
interrupt enable/disable functions.
2016-10-05atmel-samd: Add low level neopixel_write module & function for ↵Tony DiCola
WS281x/neopixel RGB LEDs.