예제 #1
0
 private String getDigitalValues(int[] din) {
   StringBuffer sb = new StringBuffer();
   for (int i = 0; i < 6; i++) sb.append("d[" + i + "]: " + din[i] + "\n");
   return sb.toString();
 }
예제 #2
0
 private String getAnalogValues(int[] ain) {
   StringBuffer sb = new StringBuffer();
   for (int i = 0; i < 5; i++) sb.append("a[" + i + "]: " + ain[i] + "\n");
   return sb.toString();
 }