Skip to content

Commit

Permalink
Change Neo.Set to Neo.SetColor so we won't change our document
Browse files Browse the repository at this point in the history
  • Loading branch information
Palomino34 committed Sep 17, 2024
1 parent 4ef423f commit 2e7fed6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dotnet/GHIElectronics.DUELink/Neo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public bool Clear() {
// return res.success;
//}

public bool Set(int id, uint color) {
public bool SetColor(int id, uint color) {
var red = (byte)((color >> 16) & 0xff);
var green = (byte)((color >> 8) & 0xff);
var blue = (byte)((color >> 0) & 0xff);
Expand Down
2 changes: 1 addition & 1 deletion javascript/src/duelink.js
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ class NeoController {
return res.success;
}

async Set(id, color) {
async SetColor(id, color) {
const red = (color >> 16) & 0xff;
const green = (color >> 8) & 0xff;
const blue = (color >> 0) & 0xff;
Expand Down
2 changes: 1 addition & 1 deletion python/DUELink/Neo.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def Clear(self):

return res.success

def Set(self, id: int, color: int):
def SetColor(self, id: int, color: int):
red = (color >> 16) & 0xFF
green = (color >> 8) & 0xFF
blue = (color >> 0) & 0xFF
Expand Down

0 comments on commit 2e7fed6

Please sign in to comment.