summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/espapa102.h
diff options
context:
space:
mode:
authormisterdanb <danb@hasi.it>2016-03-28 01:58:14 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-19 22:29:11 +0300
commita0a08b4be1583aa7a4ef33d3b1b0aa6553732eca (patch)
tree278812b070128898c4afade05b0781a622bb515f /esp8266/espapa102.h
parent6fa60153eae746bee4657ae3fcd69e71144c6d59 (diff)
downloadmicropython-a0a08b4be1583aa7a4ef33d3b1b0aa6553732eca.tar.gz
micropython-a0a08b4be1583aa7a4ef33d3b1b0aa6553732eca.zip
esp8266: Add APA102 serial individually controllable LEDs support.
APA102 is a new "smart LED", similar to WS2812 aka "Neopixel".
Diffstat (limited to 'esp8266/espapa102.h')
-rw-r--r--esp8266/espapa102.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/esp8266/espapa102.h b/esp8266/espapa102.h
new file mode 100644
index 0000000000..82c92025d3
--- /dev/null
+++ b/esp8266/espapa102.h
@@ -0,0 +1,27 @@
+/*
+ * This file is part of the MicroPython project, http://micropython.org/
+ *
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2016 Robert Foss, Daniel Busch
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+void esp_apa102_write(uint8_t clockPin, uint8_t dataPin, uint8_t *pixels, uint32_t numBytes);