Add examples for DMA, DutyCycle, DutyCycleEncoder and AddressableLED (#2100)

This commit is contained in:
Thad House
2019-11-18 22:12:17 -08:00
committed by Peter Johnson
parent 5891628112
commit 500c43fb84
14 changed files with 538 additions and 0 deletions

View File

@@ -37,4 +37,13 @@ public class AddressableLEDBuffer {
m_buffer[(index * 4) + 2] = (byte) r;
m_buffer[(index * 4) + 3] = 0;
}
/**
* Gets the buffer length.
*
* @return the buffer length
*/
public int getLength() {
return m_buffer.length / 4;
}
}