Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielgarcia@gmail.com <danielgarcia@gmail.com@4ad4ec5c-605d-bd5c-5796-512c9b60011b>2013-06-01 13:11:56 +0400
committerdanielgarcia@gmail.com <danielgarcia@gmail.com@4ad4ec5c-605d-bd5c-5796-512c9b60011b>2013-06-01 13:11:56 +0400
commit4644b6f769e2da7c74aa03ac778df8ff62a9d1a1 (patch)
tree005d047f07a6087419b1fcc2b2ebd5b14172447b /fastspi_bitbang.h
parent38fc7c315e29885fa74dc2ca27114c90a8f77d1b (diff)
Checking in the TCL work code in case someone wants it - builds, no testing yet, though
Diffstat (limited to 'fastspi_bitbang.h')
-rw-r--r--fastspi_bitbang.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fastspi_bitbang.h b/fastspi_bitbang.h
index b9fba8a8..4be8dd2c 100644
--- a/fastspi_bitbang.h
+++ b/fastspi_bitbang.h
@@ -45,6 +45,8 @@ public:
static void writeByteNoWait(uint8_t b) __attribute__((always_inline)) { writeByte(b); }
static void writeBytePostWait(uint8_t b) __attribute__((always_inline)) { writeByte(b); wait(); }
+ static void writeWord(uint16_t w) __attribute__((always_inline)) { writeByte(w>>8); writeByte(w&0xFF); }
+
// naive writeByte implelentation, simply calls writeBit on the 8 bits in the byte.
static void writeByte(uint8_t b) __attribute__((always_inline)) {
writeBit<7>(b);