Class MemoryREPL
Provides functionality for Adafruit CircuitPython REPL EEPROM interaction.
Inheritance
System.Object
MemoryREPL
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Elatec.FCT.Client.Hardware
Assembly: ElatecFCT.dll
Syntax
public class MemoryREPL
Constructors
View SourceMemoryREPL(CircuitPythonREPL)
Initializes a new instance of the EEPROM_REPL class using a CircuitPythonREPL port.
Declaration
public MemoryREPL(CircuitPythonREPL board)
Parameters
Type | Name | Description |
---|---|---|
CircuitPythonREPL | board |
Methods
View SourceInit()
Initialize the EEPROM device via CircuitPython REPL.
Declaration
public bool Init()
Returns
Type | Description |
---|---|
System.Boolean |
PrintEEPROMLength()
Print the length of EEPROM on the CircuitPython board's REPL.
Declaration
public void PrintEEPROMLength()
ReadByte(Int32)
Read byte from the address
Declaration
public byte ReadByte(int address)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | address | EEPROM read address |
Returns
Type | Description |
---|---|
System.Byte |
ReadString(Int32, Int32)
Read a string with the given lenght
Declaration
public string ReadString(int startAddress, int lenght)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startAddress | EEPROM memory start address |
System.Int32 | lenght | Lenght of the expected string |
Returns
Type | Description |
---|---|
System.String |
WriteByte(Byte, Int32)
Write a byte to the mentioned address
Declaration
public void WriteByte(byte byteToWrite, int address)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | byteToWrite | |
System.Int32 | address | EEPROM memory start address |
WriteString(String, Int32)
Write a string to the EEPROM
Declaration
public void WriteString(string stringToWrite, int startAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | stringToWrite | String to write |
System.Int32 | startAddress | EEPROM memory start address |