Class McpEeprom

java.lang.Object
com.diozero.devices.McpEeprom
All Implemented Interfaces:
DeviceInterface, AutoCloseable

public class McpEeprom
extends Object
implements DeviceInterface
See the Microchip website. Datasheet. Connections:
         Notch
 GND  A0 1  8 Vcc 3v3
 GND  A1 2  7 WP (Write Protect Input, Vss=write enabled, Vcc=write disabled)
 GND  A2 3  6 SCL
 GND Vss 4  5 SDA
 
  • Field Details

  • Constructor Details

    • McpEeprom

      public McpEeprom​(int controller, McpEeprom.Type type)
    • McpEeprom

      public McpEeprom​(int controller, int address, McpEeprom.Type type)
  • Method Details

    • getType

      public McpEeprom.Type getType()
    • getMemorySizeByte

      public int getMemorySizeByte()
    • readCurrentAddress

      public byte readCurrentAddress()
    • readByte

      public byte readByte​(int address)
    • readBytes

      public byte[] readBytes​(int address, int length)
    • writeByte

      public void writeByte​(int address, int data)
    • writeByte

      public void writeByte​(int address, byte data)
    • writeBytes

      public void writeBytes​(int address, byte[] data)
    • close

      public void close()
      Description copied from interface: DeviceInterface
      Close this device
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface DeviceInterface