title: How to sequentially set bits
body: <p>When the <code>if</code> statement is <code>true</code> I want to sequentially set every bit in the left shift operation one at a time rather than setting all bits at once. Any idea on how I could implement this?</p>
  <pre><code> if (reg_test == arduino_reg7.value):
  
          Reg_Value |= (0x1A &lt;&lt; 20)
  </code></pre>