Schupp

Bitswap

Sep 20th, 2015 (edited)
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. static unsigned int mysort(unsigned int ival)
  2. {
  3. byte mytempival = 0;
  4. for (int i = 0; i < 8; i++) {
  5. if (ival & (1 << i)) {
  6. mytempival |= (1 << MeineFolge[i]);
  7. Serial.println(i);
  8. }
  9. } return mytempival;
  10. }
Add Comment
Please, Sign In to add comment