My statement
phone1.SetScreenBrightness(50/255)
seems to set the brightness to about 50% when I click on my button. I changed the value to 10 and to 90 and those values seem to set the brightness accordingly.
However, when I close my app, the screen brightness is back to what it was before I started up my app and changed it. For example, I manually set brightness to 100 in setup manually. Then I start my little app and set it to 10 and close the app. The screen is still bright.
Is there a trick to setting the brightness and having it 'stick' after closing my app?