corneliusmunz / legoino

Arduino Library for controlling Powered UP and Boost controllers
MIT License
258 stars 35 forks source link

Add support for Mario Hub (#71360) #45

Open corneliusmunz opened 3 years ago

corneliusmunz commented 3 years ago

Add support for Mario Hub (set number #71360)

Source of knowledge:

corneliusmunz commented 3 years ago

The new features are implemented on the develop branch in the commit https://github.com/corneliusmunz/legoino/commit/3d537c6a70a5c008bb7f82627bca6e3f5b065fc0

Would be great if someone could test the example Mario.ino sketch 😄

corneliusmunz commented 3 years ago

Fixed with release https://github.com/corneliusmunz/legoino/releases/tag/1.1.0

corneliusmunz commented 3 years ago

@tthiery, @bricklife I have seen in the app, that you can control the volume of the mario loudspeaker but i found no "volume" hub property or port. I found during the connection procedure, that a HubProperty with reference code 0x12 was requested and the hub answered with 0x06, 0x00, 0x01, 0x12, 0x06, 0x64 In that case the Mario was set to 100% volume via the app and maybe 0x64 could be the volume value (DEC 100) Have you done some evaluations on this? Or maybe the volume is part of the debug Port 3

bricklife commented 3 years ago

Yes, 0x12 is the undocumented property reference of volume. You can set a value (as volume %) with this command 06 00 01 12 01 xx.

corneliusmunz commented 3 years ago

@bricklife cool! Thanks for your fast feedback. Then i will implement it in the library