Class MAX512

    • Constructor Detail

      • MAX512

        public MAX512()
    • Method Detail

      • disable

        public static void disable​(int ch)
        Disable one channel.
        Parameters:
        ch - the desired channel (chnA, chnB, chnC)
      • enable

        public static void enable​(int ch)
        Enable a disabled channel.
        Parameters:
        ch - the desired channel (chnA, chnB, chnC)
      • write

        public static void write​(int ch,
                                 byte val)
        Write a value to the DAC.
        Parameters:
        ch - the desired channel (chnA, chnB, chnC)
        val - the desired output value
      • init

        public static void init()
        Initializes the SPI.