Color Sensor Print in Blockly

I have been trying for a while now to print the color name of colorsensor id, but keep getting errors in blockly. I have a single color sensor that connects and reads colors, but when I use the print block to print the value returned by the sensor I get an error.

image

EXCEPTION: 0xed Type err
FILE_ID 0x09 / Line 2063
File “main”, line 19, in main

the line referenced is always the print line. Is this because of the type of value being returned?

It looks like there’s a code generation bug with the “color name of” block right now. It isn’t generating code for blocks that are inserted into it. It sounds like a quick fix, so I’ll put it near the top of the “to-fix” list.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.