Skip to content

Instantly share code, notes, and snippets.

@projectxcappe
Created December 5, 2017 03:06
Show Gist options
  • Select an option

  • Save projectxcappe/e3fd561e201d066564322dac0d7b67c1 to your computer and use it in GitHub Desktop.

Select an option

Save projectxcappe/e3fd561e201d066564322dac0d7b67c1 to your computer and use it in GitHub Desktop.
if ((-self.beacon.rssi < strip.pixels.count)) {
pixcount = -self.beacon.rssi;
NSLog(@"1 - %d", pixcount);
}else {
pixcount = strip.pixels.count; //should be 72
NSLog(@"2 - %d", pixcount);
}
/*
Can't seen to tell the beacons on the strip apart and not much interaction
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment