This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import struct | |
| import spidev | |
| import sys | |
| import time | |
| import random | |
| import RPi.GPIO as gpio | |
| ascii = [ | |
| [ 0x55, 0x00, 0x55, 0x00, 0x55 ], | |
| [ 0x55, 0x00, 0x55, 0x00, 0x55 ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __attribute__((constructor)) static void init() { | |
| NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
| if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.springboard"]) { | |
| CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, RunCleanCallback, CFSTR("com.merdok.runclean"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately); | |
| } | |
| [pool release]; | |
| } |