public class McpEeprom extends Object implements Closeable
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
Modifier and Type | Class and Description |
---|---|
static class |
McpEeprom.Type |
Constructor and Description |
---|
McpEeprom(int controller,
int address,
McpEeprom.Type type) |
McpEeprom(int controller,
McpEeprom.Type type) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
byte |
readByte(int address) |
byte[] |
readBytes(int address,
int length) |
byte |
readCurrentAddress() |
void |
writeByte(int address,
byte data) |
void |
writeByte(int address,
int data) |
void |
writeBytes(int address,
byte[] data) |
public McpEeprom(int controller, McpEeprom.Type type)
public McpEeprom(int controller, int address, McpEeprom.Type type)
public byte readCurrentAddress()
public byte readByte(int address)
public byte[] readBytes(int address, int length)
public void writeByte(int address, int data)
public void writeByte(int address, byte data)
public void writeBytes(int address, byte[] data)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2016–2017 mattjlewis. All rights reserved.