openroberta-lab
openroberta-lab copied to clipboard
Server error when generating a colour via a function
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:
- Import the program below.
- Open the code view (will not be opened, but show a server error instead) or press the "play" button.
This is an issue for arduinos, mbot and sensebox. There is also a problem when trying to use the following blocks for arduinos:
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.
resolved