Merge pull request #100 from brentru/fix-rgbled-example-signature

Fix method calls in RGB_LED example
This commit is contained in:
Limor "Ladyada" Fried 2019-07-08 12:30:35 -04:00 committed by GitHub
commit a61f4742e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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