Cfa533Rs232Driver 1.0.48

dotnet add package Cfa533Rs232Driver --version 1.0.48                
NuGet\Install-Package Cfa533Rs232Driver -Version 1.0.48                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cfa533Rs232Driver" Version="1.0.48" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cfa533Rs232Driver --version 1.0.48                
#r "nuget: Cfa533Rs232Driver, 1.0.48"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cfa533Rs232Driver as a Cake Addin
#addin nuget:?package=Cfa533Rs232Driver&version=1.0.48

// Install Cfa533Rs232Driver as a Cake Tool
#tool nuget:?package=Cfa533Rs232Driver&version=1.0.48                

Build status nuget License

Cfa533Rs232

C# Driver for CrystalFontz CFA533 family of 16x2 LCD displays, RS232 inteface; Developed against the CFA533-TMI-KU

1.0 update was to support .NET Standard 2.0!

NuGet

Cfa533Rs232Driver package on nuget.org.

To install CrystalFontz CFA533 Serial Driver, run the following command in the Package Manager Console:

PM> Install-Package Cfa533Rs232Driver

Sources

There are three projects included in the solution:

  • Cfa533Rs232Driver -- This is the main library that drives the CFA533 via serial port communications.
  • Cfa533Rs232Tool -- A command-line tool for exercising all currently implemented CFA533 commands.
  • Cfa533Rs232Demo -- A command-line tool that implements slightly higher-level device interactions.

Examples

Create an LCD device with the appropriate serial port name. My CFA533 is usually given 'COM3 and, by default, communicates at 19200 baud rate.

using (var lcdDevice = new LcdDevice("COM3", LcdBaudRate.Baud19200))
{
    // You must call Connect() before trying to communicate with the device
    lcdDevice.Connect();
    
    // Call lots of methods here...
    lcdDevice.SetLcdContents("Hello", "World!");
}

In order to support keypad events you need to register an event handler.

EventHandler<KeypadActivityEventArgs> eventHandler =
    delegate(object sender, KeypadActivityEventArgs eventArgs)
    {
        Console.WriteLine($"Keyboard Event: {eventArgs.KeypadAction}");
    }
lcdDevice.KeypadActivity += eventHandler;

The CFA533 is meant to handle one command at a time. There is a lock that ensures that only one command is waiting for a response to be acknowledged before additional commands are sent. However, keypad events may come at any time. This driver works pretty well in a multithreaded environment, although I have noticed an issue here and there with clean-up where not all threads know that Disconnect() has been called. In general, this should just produce a DeviceConnectionException stating that the device is not connected.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.48 183 1/17/2024
1.0.44 198 7/5/2023
1.0.43 284 1/18/2023
0.9.26 896 6/7/2022
0.9.23 1,728 9/29/2017
0.9.20 1,440 4/27/2017
0.9.14 901 4/26/2017
0.9.7 912 4/21/2017
0.9.5 913 4/21/2017

Updated to .NET Standard 2.0! CFA533 RS232 driver. Most of the LCD commands have been implemented. The host power management and monitoring features have not been implemented.