openroberta-lab icon indicating copy to clipboard operation
openroberta-lab copied to clipboard

Server error when generating a colour via a function

Open el-voss opened this issue 2 years ago • 1 comments

Hello,

I wanted to program a colour wheel in the roberta lab for an Arduino Uno with an RGB LED. For this I coded a function, that takes a number as an argument and gives back a colour. But when I try to use this function in the loop, I get a "server error". The program is attached below. I tried it with firefox and chromium.

Steps to reproduce:

  1. Import the program below.
  2. Open the code view (will not be opened, but show a server error instead) or press the "play" button.

farbrad-rgb-led.zip

el-voss avatar Jul 07 '22 11:07 el-voss

This is an issue for arduinos, mbot and sensebox. There is also a problem when trying to use the following blocks for arduinos:

Image

Here is the program tested on current develop.

The fix needs changes to repo arduino-resources as well, since NEPODefs.h needs a function overload.

RaghuvirShirodkar avatar Sep 26 '22 10:09 RaghuvirShirodkar

resolved

bjost2s avatar Mar 08 '23 16:03 bjost2s