in reply to Re: I2C help (from python)
in thread I2C help (from python)

In C, the original was probably a macro: #define CLEAR_BIT(port, n) port.DEVICE_REG_DATA &= ~(0x1<<n)

Great observation! I withdraw my "stupidly complex" remark above.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: I2C help (from python)
by RonW (Parson) on Dec 01, 2015 at 05:01 UTC

    Thanks