OpenRoberta / openroberta-lab

The programming environment »Open Roberta Lab« by Fraunhofer IAIS enables children and adolescents to program robots. A variety of different programming blocks are provided to program motors and sensors of the robot. Open Roberta Lab uses an approach of graphical programming so that beginners can seamlessly start coding. As a cloud-based application, the platform can be used without prior installation of specific software but runs in any popular browser, independent of operating system and device.
Apache License 2.0
123 stars 118 forks source link

Arduino configuration allows selecting wrong pins for components #117

Closed VinArt closed 5 years ago

VinArt commented 5 years ago

Describe the bug When configuring a component for arduino it is possible to:

To Reproduce Steps to reproduce the behavior:

  1. Go to configuration tab of an arduino robot
  2. Select unsuitable pins

Expected behavior

Additional context

756 is related

VinArt commented 5 years ago

From Arduino reference

On most Arduino boards (those with the ATmega168 or ATmega328P), this function works on pins 3, 5, 6, 9, 10, and 11. On the Arduino Mega, it works on pins 2 - 13 and 44 - 46. Older Arduino boards with an ATmega8 only support analogWrite() on pins 9, 10, and 11.

bjost2s commented 5 years ago

In general we haven't implemented a checker for the use of pins so far. The idea was to do it on server side, because there we do it also for the "old" configuration.

rbudde commented 5 years ago

a job for a configuration checker

bjost2s commented 5 years ago

see #114