Skip to main content
Any Framework

Iot.Device.At24C128C assembly for .NET nanoFramework C# projects

Published
Sep 14, 2022
4y ago
Total Downloads
10.4K
10,389

Install

dotnet add package nanoFramework.Iot.Device.At24C128C --version 1.2.82

No framework information available.

README

AT24C128C - I2C EEPROM read/write

This binding is used used to read and write data via I2C from the external EEPROM memory.

Documentation

Datasheet

Original code was written for MIMXRT1060 Evaluation Board by BusKetZz [email protected]

Usage

using System.Diagnostics;
using System.Text;
using System.Threading;
using Iot.Device.At24C128C;

At24C128C eeprom = new(0x50, 1);

string message = "Hello from MIMXRT1060!";
byte[] messageToSent = Encoding.UTF8.GetBytes(message);
ushort memoryAddress = 0x0;
eeprom.Write(memoryAddress, messageToSent);

Thread.Sleep(100);

byte[] receivedData = eeprom.Read(memoryAddress, message.Length);
string dataConvertedToString = System.Text.Encoding.UTF8.GetString(receivedData, 0, receivedData.Length);
Debug.WriteLine($"Message read from EEPROM: {dataConvertedToString}");

Changes from Previous Version

No structural changes between v1.1.113.2032 and v1.2.82.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.