summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules/apa102.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-09-06 13:40:51 +1000
committerDamien George <damien.p.george@gmail.com>2017-09-06 13:40:51 +1000
commit01dd7804b87d60b2deab16712eccb3b97351a9b7 (patch)
tree1aa21f38a872b8e62a3d4e4f74f68033c6f827e4 /esp8266/modules/apa102.py
parenta9862b30068fc9df1022f08019fb35aaa5085f64 (diff)
downloadmicropython-01dd7804b87d60b2deab16712eccb3b97351a9b7.tar.gz
micropython-01dd7804b87d60b2deab16712eccb3b97351a9b7.zip
ports: Make new ports/ sub-directory and move all ports there.
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
Diffstat (limited to 'esp8266/modules/apa102.py')
-rw-r--r--esp8266/modules/apa102.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/esp8266/modules/apa102.py b/esp8266/modules/apa102.py
deleted file mode 100644
index 41b7c0485c..0000000000
--- a/esp8266/modules/apa102.py
+++ /dev/null
@@ -1,17 +0,0 @@
-# APA102 driver for MicroPython on ESP8266
-# MIT license; Copyright (c) 2016 Robert Foss, Daniel Busch
-
-from esp import apa102_write
-from neopixel import NeoPixel
-
-
-class APA102(NeoPixel):
- ORDER = (0, 1, 2, 3)
-
- def __init__(self, clock_pin, data_pin, n, bpp=4):
- super().__init__(data_pin, n, bpp)
- self.clock_pin = clock_pin
- self.clock_pin.init(clock_pin.OUT)
-
- def write(self):
- apa102_write(self.clock_pin, self.pin, self.buf)