Cfa533Rs232Driver 1.0.48
dotnet add package Cfa533Rs232Driver --version 1.0.48
NuGet\Install-Package Cfa533Rs232Driver -Version 1.0.48
<PackageReference Include="Cfa533Rs232Driver" Version="1.0.48" />
paket add Cfa533Rs232Driver --version 1.0.48
#r "nuget: Cfa533Rs232Driver, 1.0.48"
// 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
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 | Versions 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. |
-
.NETStandard 2.0
- Microsoft.Windows.Compatibility (>= 8.0.1)
- Serilog (>= 3.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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.