From 7924142652ee82ca59cff99c8fd01d0de24aeeae Mon Sep 17 00:00:00 2001 From: Jonas Niesner Date: Sat, 16 Sep 2023 13:17:16 +0200 Subject: [PATCH] Updated Led control (markdown) --- Led-control.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Led-control.md b/Led-control.md index 4523d25..53330c6 100644 --- a/Led-control.md +++ b/Led-control.md @@ -1,6 +1,6 @@ # THIS IS STILL WIP AND THE API IS NOT STABLE MAY NOT EVEN BE IMPLEMENTED -The led of NRF based tags can be controlled by sending a command with the id 100 to the tag. +The led of NRF based tags can be controlled by sending a command with the id 3 to the tag. The led is controlled by the extended command data(12 Bytes) @@ -10,13 +10,7 @@ the first 4 bits will describe the mode of the led control. The interpretation o the second 4 bytes are the duration of the led flashes in millisecond where 0 is mapped to half a ms and 15 is mapped to no off time. 15 WILL RUIN YOUR BATTERY LIFE. Everything higher than 3ms has a diminishing effect to visibility and 2ms is recommended as the bes compromise between power consumption and visibility. -## MODE 0 OFF - -## MODE 1 normal flashing -Byte 1 RGB 332 color data -Byte 2 - 5 Time between flashes in ms - -## MODE 2 advanced sequence control +## MODE 0 advanced sequence control start of sequence 1 @@ -37,4 +31,4 @@ start of sequence 1 uint8_t ildelay3 = ledcfg[9]; uint8_t grouprepeats = ledcfg[11]; -## MODE 3 - 15 are reserved for future use \ No newline at end of file +## MODE 1 - 15 are reserved for future use and are used for off at the moment \ No newline at end of file