forked from Makuna/NeoPixelBus
cleanuo
This commit is contained in:
@@ -72,8 +72,13 @@ public:
|
||||
{
|
||||
while (!IsReadyToUpdate())
|
||||
{
|
||||
#if !defined(NEOPIXEBUS_NO_YIELD)
|
||||
yield(); // allows for system yield if needed
|
||||
#endif
|
||||
}
|
||||
|
||||
_stream->write(_data, _sizeData);
|
||||
|
||||
_usEndTime = micros(); // Save time to ensure 1ms delay
|
||||
}
|
||||
|
||||
|
@@ -142,10 +142,9 @@ public:
|
||||
|
||||
void Update(bool)
|
||||
{
|
||||
|
||||
digitalWrite(_pinOutputEnable, HIGH);
|
||||
|
||||
digitalWrite(_pinLatch, LOW);
|
||||
|
||||
_wire.beginTransaction();
|
||||
|
||||
// We need to write the channels in reverse order. Get a Pointer to the last channel.
|
||||
@@ -159,6 +158,7 @@ public:
|
||||
}
|
||||
|
||||
_wire.endTransaction();
|
||||
|
||||
digitalWrite(_pinLatch, HIGH);
|
||||
digitalWrite(_pinLatch, LOW);
|
||||
digitalWrite(_pinOutputEnable, LOW);
|
||||
|
Reference in New Issue
Block a user