Für den Inhalt dieser Seite ist eine neuere Version von Adobe Flash Player erforderlich.

Adobe Flash Player herunterladen


Objective-C


1
Dec 09

colorWheel: change the color of RGB LEDs

This is a demo of my colorWheel prototype.

Since I bought the Philips Ambilight I was frustrated because I was not able to change the color with my Mac or the iPhone. I now bought some IR controllable LEDs and integrated them into my HAL9031 API.

The iPhone App simply uses the build in accelerometer to rotate the colorWheel selection.
Tap the screen and the LEDs change their color!

The Flash Multitouch App changes the color of the LEDs and of the animation that loops in the background.

// The sound you can hear is programmed. It was generated by Flash & Midi.


25
Nov 09

HAL9031: Demovideo


23
Oct 09

blobDrop – MultiTouch Version

Here is a video of the blobDrop system:


23
Oct 09

blobDrop 0.7 – merging iPhone and Flash

At the moment I am working on a project called blobDrop.

blobDrop is a realtime photo & video gallery available on iPhone, online or locally on a multitouch device.

blobDrop is a realtime installation. New content is synchronized on every running instance.

Users can participate online by uploading footage or by recording a video. This can also be done locally on a central Multi-Touch device or with an iPhone app.

Take a snapshot – Participate and share impression.

blobDrop iPhone App preview:


9
Oct 09

How to use the iPhone GPS Class CLLocationManager

The following code returns the latitude and longitude of a GPS enabled iPhone:


#import "locationTestAppDelegate.h"
#import 

@implementation locationTestAppDelegate

@synthesize window;
@synthesize locationManager;

- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    [window makeKeyAndVisible];

	locationManager = [[CLLocationManager alloc] init];

}

- (void)dealloc {
    [window release];
    [super dealloc];
}

-(id) init {
	NSLog(@"GPS");
    if (self = [super init]) {
        currentLocation = [[CLLocation alloc] init];
        locationManager = [[CLLocationManager alloc] init];
        locationManager.delegate = self;
        [self start];
    }
    return self;
}

-(void) start {
	NSLog(@"START SEARCHING...");
    [locationManager startUpdatingLocation];
}
-(void) stop {
	NSLog(@"STOP SEARCHING.");
    [locationManager stopUpdatingLocation];
}

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {

	if ( abs([newLocation.timestamp timeIntervalSinceDate: [NSDate date]]) < 120) {
        currentLocation = newLocation;
		NSString *GPSPosition = [NSString stringWithFormat:@"lat=%f&lng=%f", currentLocation.coordinate.latitude, currentLocation.coordinate.longitude ];

		NSLog(@"FOUND YOU: ");
		NSLog(GPSPosition);

		UIAlertView *alert;
		alert = [[UIAlertView alloc] initWithTitle:@"GPS Location:" message:GPSPosition delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
		[alert show];
		[alert release];
	}
}

- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
	NSLog(@"locationManager ERROR");
    UIAlertView *alert;
    alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[error description] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alert show];
    [alert release];
}

@end