# The Big RISCY BUSINESS Question Thread

**URL:** <https://forums.sifive.com/t/the-big-riscy-business-question-thread/531>\
**Category:** HiFive1 Rev B\
**Created:** [May 9, 2017, 12:55am UTC](https://forums.sifive.com/t/the-big-riscy-business-question-thread/531 "2017-05-09T00:55:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mwachs5](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/mwachs5/32/13_2.png) [@mwachs5](https://forums.sifive.com/u/mwachs5)\
**Post date:** [May 15, 2017, 10:15pm UTC](https://forums.sifive.com/t/the-big-riscy-business-question-thread/531/4 "2017-05-15T22:15:25Z")

</div>

> [@neo\_ar](#):
>
> edit: In the last episode we figured out that it was probably supposed to be PWM1\_REG(PWM\_CMP2) = (B \>\> 1) \<\< 4; because a centre aligned waveform has 2x the duty cycle compared to a left aligned waveform, so we divide our input by two (shifting right by 1) to get the same brightness as our other channels

Perhaps… but there was also a fair amount of “that looks about right” 🙂 If you try omitting the \<\< 1, does the blue come out too bright? I believe I found the blue LED a bit overpowering which is why the code toned it down.

---

_[View the full topic](https://forums.sifive.com/t/the-big-riscy-business-question-thread/531)._
