package SBC.Odroid;



import SBC.BasicSBCInfo;
import anywheresoftware.b4a.BA;

@BA.ShortName("Odroid_H2_Pin")

public class H2_Pin extends BasicSBCInfo {

	
	public H2_Pin() {
		super();
		
	}

	public final String eth1_name = "enp3s0";
	public final String eth0_name = "enp2s0";
	
	//https://wiki.odroid.com/odroid-h2/application_note/16port_i2c_gpio#tab__old_kernel_version
	
	/**
	 * No info on pin, internal bus for internal sensors
	 */
	public final String i2c_0 = "/dev/i2c-0";
	
	/**
	 * No info on pin, internal bus for internal sensors
	 */
	public final String i2c_1 = "/dev/i2c-1";
	
	/**
	 * New Kernel (4.18 up), Pin #18(SCL) and #20(SDA)
	 */
	public final String i2c_2 = "/dev/i2c-2";
	
	/**
	 * New Kernel (4.18 up), Pin #13(SCL) and #15(SDA).
	 */
	public final String i2c_3 = "/dev/i2c-3";
	
	/**
	 * No info on pin, internal bus for internal sensors
	 */
	public final String i2c_4 = "/dev/i2c-4";
	
	/**
	 * Old Kernel, Pin #18(SCL) and #20(SDA).
	 */
	public final String i2c_5 = "/dev/i2c-5";
	
	/**
	 * Old Kernel, Pin #13(SCL) and #15(SDA)
	 */
	public final String i2c_6 = "/dev/i2c-6";
	
	/**
	 * No info on pin, internal bus for internal sensors
	 */
	public final String i2c_7 = "/dev/i2c-7";
	
	/**
	 * No info on pin, internal bus for internal sensors
	 */
	public final String i2c_8 = "/dev/i2c-8";
	
	
	public void Initialize(BA bax, Object callerobject,  String event) {
		setup_events(bax, callerobject, event, this);
	}

	
	@Override
	/**
	 * Belum tau caranya, selalu return 0
	 */
	public double Get_CPU_CoreVolt() {
		// TODO belum ketemu caranya
		return 0;
	}

	

	
	
	
}
