Berry Leds update comments (#22748)

This commit is contained in:
s-hadinger 2025-01-02 10:44:39 +01:00 committed by GitHub
parent 884e795dff
commit b5c326d772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 24 deletions

View File

@ -8,18 +8,14 @@
# 01 : begin void -> void # 01 : begin void -> void
# 02 : show void -> void # 02 : show void -> void
# 03 : CanShow void -> bool # 03 : CanShow void -> bool
# 04 : IsDirty void -> bool # 04 : IsDirty void -> bool (deprecated)
# 05 : Dirty void -> void # 05 : Dirty void -> void (deprecated)
# 06 : Pixels void -> bytes() (mapped to the buffer) # 06 : Pixels void -> bytes() (mapped to the buffer)
# 07 : PixelSize void -> int # 07 : PixelSize void -> int
# 08 : PixelCount void -> int # 08 : PixelCount void -> int
# 09 : ClearTo (color:??) -> void # 09 : ClearTo (color:0xRRGGBB or 0xWWRRGGBB) -> void
# 10 : SetPixelColor (idx:int, color:??) -> void # 10 : SetPixelColor (idx:int, color:0xRRGGBB or 0xWWRRGGBB) -> void
# 11 : GetPixelColor (idx:int) -> color:?? # 11 : GetPixelColor (idx:int) -> color:0xRRGGBB or 0xWWRRGGBB
# 20 : RotateLeft (rot:int [, first:int, last:int]) -> void
# 21 : RotateRight (rot:int [, first:int, last:int]) -> void
# 22 : ShiftLeft (rot:int [, first:int, last:int]) -> void
# 23 : ShiftRight (rot:int [, first:int, last:int]) -> void
class Leds_ntv end class Leds_ntv end
@ -116,10 +112,10 @@ class Leds : Leds_ntv
def can_show() def can_show()
return self.call_native(3) return self.call_native(3)
end end
def is_dirty() def is_dirty() ## DEPRECATED
return self.call_native(4) return self.call_native(4)
end end
def dirty() def dirty() ## DEPRECATED
self.call_native(5) self.call_native(5)
end end
def pixels_buffer(old_buf) def pixels_buffer(old_buf)
@ -216,10 +212,10 @@ class Leds : Leds_ntv
def can_show() def can_show()
return self.strip.can_show() return self.strip.can_show()
end end
def is_dirty() def is_dirty() ## DEPRECATED
return self.strip.is_dirty() return self.strip.is_dirty()
end end
def dirty() def dirty() ## DEPRECATED
self.strip.dirty() self.strip.dirty()
end end
def pixels_buffer() def pixels_buffer()
@ -303,10 +299,10 @@ class Leds : Leds_ntv
def can_show() def can_show()
return self.strip.can_show() return self.strip.can_show()
end end
def is_dirty() def is_dirty() ## DEPRECATED
return self.strip.is_dirty() return self.strip.is_dirty()
end end
def dirty() def dirty() ## DEPRECATED
self.strip.dirty() self.strip.dirty()
end end
def pixels_buffer() def pixels_buffer()

View File

@ -59,18 +59,14 @@ extern "C" {
// # 01 : begin void -> void // # 01 : begin void -> void
// # 02 : show void -> void // # 02 : show void -> void
// # 03 : CanShow void -> bool // # 03 : CanShow void -> bool
// # 04 : IsDirty void -> bool // # 04 : IsDirty void -> bool (deprecated)
// # 05 : Dirty void -> void // # 05 : Dirty void -> void (deprecated)
// # 06 : Pixels void -> bytes() (mapped to the buffer) // # 06 : Pixels void -> bytes() (mapped to the buffer)
// # 07 : PixelSize void -> int // # 07 : PixelSize void -> int
// # 08 : PixelCount void -> int // # 08 : PixelCount void -> int
// # 09 : ClearTo (color:??) -> void // # 09 : ClearTo (color:0xRRGGBB or 0xWWRRGGBB) -> void
// # 10 : SetPixelColor (idx:int, color:??) -> void // # 10 : SetPixelColor (idx:int, color:0xRRGGBB or 0xWWRRGGBB) -> void
// # 11 : GetPixelColor (idx:int) -> color:?? // # 11 : GetPixelColor (idx:int) -> color:0xRRGGBB or 0xWWRRGGBB
// # 20 : RotateLeft (rot:int [, first:int, last:int]) -> void
// # 21 : RotateRight (rot:int [, first:int, last:int]) -> void
// # 22 : ShiftLeft (rot:int [, first:int, last:int]) -> void
// # 23 : ShiftRight (rot:int [, first:int, last:int]) -> void
void * be_get_tasmotaled(bvm *vm) { void * be_get_tasmotaled(bvm *vm) {
be_getmember(vm, 1, "_p"); be_getmember(vm, 1, "_p");