mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[hal] Fix and document addressable LED timings (#5272)
HAL_SetAddressableLEDBitTiming swapped high and low timings for whatever was written to it. This fixes that bug. Additionally, the API has been updated to take high time first, and then low time. This is due to this being the physical data format, so having the API match is clearer. Additionally, update the docs with the defaults.
This commit is contained in:
@@ -14,7 +14,7 @@ public class AddressableLEDJNI extends JNIWrapper {
|
||||
public static native void setData(int handle, byte[] data);
|
||||
|
||||
public static native void setBitTiming(
|
||||
int handle, int lowTime0, int highTime0, int lowTime1, int highTime1);
|
||||
int handle, int highTime0, int lowTime0, int highTime1, int lowTime1);
|
||||
|
||||
public static native void setSyncTime(int handle, int syncTime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user