Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216327

Forum Post: RE: MSP430F5659 and PCU9656 led driver over I2C

$
0
0

ok i apologize i was given a function that didnt work for what i wanted and now i found my answer im sure yours worked fine but really all i needed was

LedState[x] |=(1<< n);

LedState[x] &= ~(1<< n);

x being the byte in my array and n being the bit i needed to change. i haven't done much with individual bits changed this way and was led to believer it would take a special function. shows how i still don't have a ton of experience... with these in my function i will be able to accomplish my goal and everything should work fine as iv tested this on code composer at home and it should do exactly what i want i do thank you for your help.

Viewing all articles
Browse latest Browse all 216327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>