Open escuta opened 5 months ago
Perhaps it's just that the Mapper should be the last device to be initialised on start up (especially important when running without a GUI and no changes can be made manually). Because, for example, if everything is working and decide to make a change to the serial device, I again need to reconnect the Mapper before it will work. Is there any way to specify the execution order of devices in the Device Manager on start up?
Hi,
Two things relating to the Mapper device:
To reproduce the problem, please install the following on an arduino (note you may need to to change the line "int buttonState = abs(digitalRead(pushButton) - 1);", depending on your button type) :
Attach a button to pin 2 and to the earth on the Arduino. Next, unzip and load the attached "issue.score" score file into Score 3.1.10 (or 3.1.12?). Expand the devices in the manager. The DigitalReadSerial->buttonState should show "false". If not, change the arduino code as described above and re-upload the code.
Ok. When the button is pressed you'll notice that DigitalReadSerial->buttonState changes to true, as it should, however Mapper->buttonState, which is bound to it, does not. It is necessary to disconnect the Mapper device and reconnect it in order for it to work.
At least that is the case on my machines!
Is there something that can be done code-wise about this? eg. re-connect the Mapper automatically after initialisation somehow?
Thanks
issue.score.zip