Hallo

Versuche das mal ohne RP6-Library:

Code:
#include <avr/io.h>			// I/O Port definitions
//#include "RP6RobotBaseLib.h"

void taster(void)
{
	if (PINB & (1<<0))  //wenn PINB high (taster gedrückt)
	{
		PORTB |= (1<<7);  //PIN7 von PORTB auf high
	}
	else
	{
		PORTB &=~ (1<<7);  //PIN7 von PORTB auf low
	}
}
int main(void) //Hauptprogramm
{
	//initRobotBase();

	DDRB&=~ (1<<0);  //PIN0 von PORTB als Eingang
	DDRB |= (1<<7);   //PIN7 von PORTB als Ausgang

	while(1) taster(); //endlos Taster abfragen
}
Ich hoffe, das funktioniert, ich habe es nicht getestet. Beachte die Anzahl der Bytes ohne RP6-Library!

Ein Programm für einen AVR darf nie beendet werden, deshalb muss immer eine Endlosschleife am Ende ausgeführt werden.

Gruß
mic