 	if( OpcodeIs( 'A', 'W' )) {
 		valueA = getParamValue( &line, &next );
 		valueB = getParamValue( &line, &next );
+		pinMode( valueA, OUTPUT );
 		analogWrite( valueA, valueB );
 		return next;
 	}

	if( OpcodeIs( 'D', 'R' )) {
		varname = getDestVarname( &line, &next );
		valueA = getParamValue( &line, &next );
		storeVariable( varname, digitalRead( valueA ), next );
		return next;
	}

	if( OpcodeIs( 'D', 'W' )) {
		valueA = getParamValue( &line, &next );
		valueB = getParamValue( &line, &next );
		pinMode( valueA, OUTPUT );
		digitalWrite( valueA, (valueB==0)?LOW:HIGH );
		return next;
	}
