Hallo Christian,

tu mal Folgendes in deine Schleife zwischen writeChar('\n') und mSleep(500) :
Code:
	if (adc2 <= 10) {
		externalPort.LED1 = true;
	}
	
	if ((adc2 >= 300) && (adc2 <= 350)) {
		externalPort.LED1 = true;
		externalPort.LED2 = true;
	}
	
	if ((adc2 >= 600) && (adc2 <= 650)) {
		externalPort.LED1 = true;
		externalPort.LED2 = true;
		externalPort.LED3 = true;
		externalPort.LED4 = true;
	}
    
	if (((adc2 > 10) && (adc2 < 300))
	 || ((adc2 > 350) && (adc2 < 600))
	 || (adc2 > 650)) {
		externalPort.LED1 = false;
		externalPort.LED2 = false;
		externalPort.LED3 = false;
		externalPort.LED4 = false;
	}
	outputExt();
Nicht getestet!

Gruß Dirk