Hi and welcome to the forum.
The brightness is changed on the display, not the pi. I think there was a heated discussion about that a few years back...
Code: Select all
def on_message(client, userdata, msg): if msg.payload == "close": os.system('play --no-show-progress %s --channels 2 synth %s' % (sound1, duration)) print "Topic: ", msg.topic + "\nMessage: " + str(msg.payload)