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: 15
Joined: Thu Aug 31, 2017 9:23 pm

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

by GuitarHero on Fri May 25, 2018 8:56 am

This is really annoying!
You can fix it in the JAVASCRIPT view, but it breaks again when you switch back to the BLOCKS view.
Adafruit, are you working on this?

GuitarHero
 
Posts: 7
Joined: Fri Apr 06, 2018 10:01 am

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

by pelikhan on Thu Jun 07, 2018 1:13 am

Thank you for reporting this issue. We've fixed it in https://makecode.adafruit.com/beta . Please tell us if it works for you...

pelikhan
 
Posts: 13
Joined: Wed Sep 27, 2017 12:18 pm

Please be positive and constructive with your questions and comments.