I have been testing the rainbow through the flotilla python API and I havent been able to change the brightness. Im using the command: rainbow.set_brightness(brightness) sending values from 1 to 150 since I saw on the class that the initial value is 150. Do I need to do anthing else like a rainbow.update()? What are the values that the brigthness paramater can take?
I need to take a look at the Dock Firmware and confirm Brightness is being handled correctly. I ran across this while working on the Python library and made another “I’ll fix it when I get time” mental note.
I’ve got time, so I’m going to look into it.
Edit: As I suspected, Brightness for the Rainbow currently isn’t implemented in the Dock firmware. Added to the GitHub issues so I don’t forget.
Ok, I hope you guys have time to add it to the firmware soon, The maximum brigtness is kind or anoying. I already found an appllication for the Flotilla and the Rainbow but with the current brightness I cant use it.
When I was playing with direct serial access, I sent values between 0-255 for r,g,b. All worked fine. They Python library for rainbow has a brightness value but it does nothing with it.
You could modify the library to scale all the values. But its simpler to just ignore the idea of brightness and just set your RGB values appropriately in your own software.
And yes they’re crazy bright. Values up to about 50 are more eye friendly - especially for development where you tend to stare at the things.
I’ll definitely fix it when I’m back in the office. I’m sure I’ll have a batch of maintenance changes to make by then to the Dock, Python and Rockpool to bring them all into sync.
There’s a dozen things that I can see need doing with existing software right off the cuff- it’s an interesting problem since it makes it look like we spent no time working on the software but in actual fact:
We didn’t have final docks/modules to test it against until relatively recently
It’s actually been rewritten from almost scratch over and over again, when we implemented the minimal theme that was actually a near total rebuild.
I think there will be a lot of tales to tell about the process one day! If anyone’s interested in them.
as long as you wear an eye patch, rest heavily on a oak-made cane, an oversized ring on your finger, sure I’d pay good money to attend such an event… In fact I’d probably cross the 7 seas just to be there!
There’s a fix in the ShipShape version of the Python API which includes brightness control for rainbow. A firmware fix wont be necessary. Since there’s no brightness control register on the SN3218 it would be redundant.