light.RBG() not working in MakeCode Blocks

Microsoft's MakeCode platform for easy blocks-style programming

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
storm135
 
Posts: 1
Joined: Thu Apr 05, 2018 9:41 am

light.RBG() not working in MakeCode Blocks

Post by storm135 »

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

Code: Select all

forever(function () {
    light.setAll(light.rgb("" + 0, "" + 0, "" + 0))
})
manual edit to this works:

Code: Select all

forever(function () {
    light.setAll(light.rgb(0, 0, 0))
})


User avatar
Kabaju42
 
Posts: 15
Joined: Thu Aug 31, 2017 9:23 pm

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

Post by Kabaju42 »

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.)

User avatar
GuitarHero
 
Posts: 40
Joined: Fri Apr 06, 2018 10:01 am

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

Post by GuitarHero »

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?

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

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

Post by pelikhan »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “MakeCode”