public String toString() {
		StringBuilder builder = new StringBuilder();
		// TODO only prefix with comma if not first entry written.  Use reflection
			
		if (parent.containsDigital()) {
			for (int i = 0; i <= 8; i++) {
				if (parent.isDigitalEnabled(i)) {
					builder.append(",digital[" + i + "]=" + (this.isDigitalOn(i) ? "high" : "low"));
				}
			}
		}
		
		if (parent.containsAnalog()) {
			for (int i = 0; i <= 5; i++) {
				if (parent.isAnalogEnabled(i)) {
					builder.append(",analog[" + i + "]=" + this.getAnalog(i));	
				}
			}
		}

		return builder.toString();
	}