0

light.RBG() not working in MakeCode Blocks
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

light.RBG() not working in MakeCode Blocks

by storm135 on Thu Apr 05, 2018 9:48 am

When you try to set pixel color using blocks it expands to the following javascript which does not compile:

Code: Select all | TOGGLE FULL SIZE
forever(function () {
    light.setAll(light.rgb("" + 0, "" + 0, "" + 0))
})


manual edit to this works:

Code: Select all | TOGGLE FULL SIZE
forever(function () {
    light.setAll(light.rgb(0, 0, 0))
})


storm135
 
Posts: 1
Joined: Thu Apr 05, 2018 9:41 am

Re: light.RBG() not working in MakeCode Blocks

by Kabaju42 on Mon Apr 09, 2018 5:17 pm

Yes storm135 I saw the same thing today when I was playing with it. I hope they fix it soon.

(Sorry probably not the reply you're looking for.)

Kabaju42
 
Posts: 14
Joined: Thu Aug 31, 2017 9:23 pm

Please be positive and constructive with your questions and comments.