From 131891423b79497e02ea63cd61bb2434ea553711 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 17 Feb 2016 17:41:03 -0800 Subject: [PATCH] Start sending LED data down the pipe for the ATTiny based implementation --- implementation/Model01.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/implementation/Model01.cpp b/implementation/Model01.cpp index 463d614f..81f06c05 100644 --- a/implementation/Model01.cpp +++ b/implementation/Model01.cpp @@ -12,6 +12,12 @@ void Model01::setup(void) { void Model01::led_set_crgb_at(uint8_t i, cRGB crgb) { + if (i<32) { + leftHand.ledData.leds[i]= crgb; + } + else if (i<64) { + rightHand.ledData.leds[i-32]= crgb; + } } void Model01::led_sync() {