But some strange things appear here while checking the issue:
If you setup a PoweredUp program on the iOS or Android app, the sensor detects GREEN with the color detection block. But if you feed in the block to the Hub LED, the Hub LED will be set to CYAN. So i think the color sensor firmware does a wrong mapping of the GREEN color to the value 5 which means in Lego colors CYAN. In the visualisation of the App it seems that a remapping occurs here on the App SW side but if you feed in the value directly to the RGB light of the HUB the remapping is not applied and you see CYAN if your sensor faces a GREEN block.
Maybe some users can try out a similar program as the following and can check if this behaviour could be reproduced. If so, i could do the remapping in the legoino library that the sensor value 5 is mapped to 6.
@m9lab figured out in the gitter chat (https://gitter.im/legoinochat/community?at=5f96b2fcc7ef520fffc61333) that the library detects the color CYAN (value = 5) for a GREEN brick. After a short evaluation i can confirm this issue.
But some strange things appear here while checking the issue:
If you setup a PoweredUp program on the iOS or Android app, the sensor detects GREEN with the color detection block. But if you feed in the block to the Hub LED, the Hub LED will be set to CYAN. So i think the color sensor firmware does a wrong mapping of the GREEN color to the value 5 which means in Lego colors CYAN. In the visualisation of the App it seems that a remapping occurs here on the App SW side but if you feed in the value directly to the RGB light of the HUB the remapping is not applied and you see CYAN if your sensor faces a GREEN block.
Maybe some users can try out a similar program as the following and can check if this behaviour could be reproduced. If so, i could do the remapping in the legoino library that the sensor value 5 is mapped to 6.