package com.google.samples.segmentdisplay;

import android.os.Build;

@SuppressWarnings("WeakerAccess")
public class BoardDefaults {
    private static final String DEVICE_EDISON = "edison";
    private static final String DEVICE_RPI3 = "rpi3";
    private static final String DEVICE_NXP = "imx6ul";

    /**
     * Return the preferred Data GPIO pin for each board.
     */
    public static String getGPIOforData() {
        // TODO: confirm DEVICE and preferred port for NXP
        switch (Build.DEVICE) {
            case DEVICE_EDISON:
                return "IO7";
            case DEVICE_RPI3:
                return "26";
            case DEVICE_NXP:
                return "??";
            default:
                throw new IllegalStateException("Unknown Build.DEVICE " + Build.DEVICE);
        }
    }

    /**
     * Return the preferred Clock GPIO pin for each board.
     */
    public static String getGPIOforClock() {
        // TODO: confirm DEVICE and preferred port for NXP
        switch (Build.DEVICE) {
            case DEVICE_EDISON:
                return "IO6";
            case DEVICE_RPI3:
                return "25";
            case DEVICE_NXP:
                return "??";
            default:
                throw new IllegalStateException("Unknown Build.DEVICE " + Build.DEVICE);
        }
    }

}
@@ -623,10 +623,13 @@
 rn %22
-26
+BCM20
 %22;%0A 
@@ -1143,10 +1143,13 @@
 rn %22
-25
+BCM21
 %22;%0A 

update schematics and pins