# Control brightness in Python API?

**URL:** <https://forums.blinkstick.com/t/control-brightness-in-python-api/669>\
**Category:** Support\
**Created:** [January 19, 2017, 3:04pm UTC](https://forums.blinkstick.com/t/control-brightness-in-python-api/669 "2017-01-19T15:04:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![p0ke](https://forums.blinkstick.com/user_avatar/forums.blinkstick.com/p0ke/32/14_2.png) [@p0ke](https://forums.blinkstick.com/u/p0ke)\
**Post date:** [January 19, 2017, 9:16pm UTC](https://forums.blinkstick.com/t/control-brightness-in-python-api/669/2 "2017-01-19T21:16:19Z")

</div>

Hello and welcome to the forums.

Please take a look at this thread to find a Solution for brightness control:

> [@Would is be possible to power LED strips using USB](https://forums.blinkstick.com/t/would-is-be-possible-to-power-led-strips-using-usb/648/6):
>
> Thanks @p0ke, that worked great! def goDarkBlue(): for bstick in blinkstick.find\_all(): Brightness = 5 bstick.set\_inverse(True) r,g,b = bstick.\_hex\_to\_rgb("#3F89FF") r = (Brightness / 100.0 \* r) g = (Brightness / 100.0 \* g) b = (Brightness / 100.0 \* b) bstick.set\_color(red=r, green=g, blue=b) return redirect("/") Is how I adapted your sample script. Thanks again.

I hope it helps

---

_[View the full topic](https://forums.blinkstick.com/t/control-brightness-in-python-api/669)._
