Merge pull request #100 from brentru/fix-rgbled-example-signature
Fix method calls in RGB_LED example
This commit is contained in:
commit
a61f4742e5
1 changed files with 3 additions and 3 deletions
|
|
@ -78,11 +78,11 @@ while True:
|
|||
if color_val != prev_color:
|
||||
# print rgb values and hex value
|
||||
print('Received Color: ')
|
||||
red = aio.toRed(color_val.value)
|
||||
red = aio.to_red(color_val.value)
|
||||
print('\t - R: ', red)
|
||||
green = aio.toGreen(color_val.value)
|
||||
green = aio.to_green(color_val.value)
|
||||
print('\t - G: ', green)
|
||||
blue = aio.toBlue(color_val.value)
|
||||
blue = aio.to_blue(color_val.value)
|
||||
print('\t - B: ', blue)
|
||||
print('\t - HEX: ', color_val.value)
|
||||
# map color values (0-255) to 16-bit values for the pca
|
||||
|
|
|
|||
Loading…
Reference in a new issue