Skip to content

smdn/Smdn.Devices.US2066

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smdn.Devices.US2066

GitHub license GitHub issues tests/main CodeQL NuGet Smdn.Devices.US2066

Smdn.Devices.US2066

Smdn.Devices.US2066 is a .NET library for controlling WiseChip US2066 OLED Driver with Controller.

This library enables you to control OLED character display modules which has US2066 controller chip.

The supported display modules are listed in tested and supported display modules.

Hardware supports

Smdn.Devices.US2066 is based on Iot.Device.Bindings. This library enables you to control OLED character displays connected to the board like Raspberry Pi which Iot.Device.Bindings supports.

Also combined with the library Smdn.Devices.MCP2221.GpioAdapter, you can control the OLED displays via USB connection even on generic PCs without using the specific board like Arduino. See MCP2221 example.

Library API features

string to byte[] conversion

Smdn.Devices.US2066 can output strings directly. Symbols and non-ASCII characters are automatically converted to the appropriate bytes, and are displayed on the OLED display.

As an example, the string "ÄÁΩ⏫→" will be displayed like Ä Á Ω ⏫ →.

For more information about character mapping, see this document.

(⚠The character mapping of CGROM-B and some other characters, especially alphabets with diacritical marks, are incomplete. Contributions are welcome! See issue #2)

Japanese and Russian conversion

Smdn.Devices.US2066 also supports Japanese full-width Hiragana/Katakana to half-width Katakana conversion(全角かな/全角カナ→半角カナ変換), Russian lower case to upper case conversion.

As an example, the following strings will be displayed like below.

string Characters on display
"こんにちは、せかい!" こんにちは、せかい!
"Привет, мир!"