Nanoframework And LCD (Text Base)

0 19159 Medium

Control Text Base LCD (Character LCD) With Nanoframework

Ā 

Nanoframework And LCD (Text Base)

Things used in this project

Ā 

Hardware components

HARDWARE LIST
DFRobot FireBeetle ESP32 IOT Microcontroller (Supports Wi-Fi & Bluetooth)
Adafruit RGB Backlight LCD - 16x2

Software apps and online services

Ā 

NET nanoFramework Visual Studio extension

Ā 

Microsoft Visual Studio 2017

Ā 

Story

Ā 

Hi :-)

Ā 

In This Post I Will Create A project To Work With LCD by Nano framework.(nanoframework)

Ā 

Step 1:

Ā 

I work With LCD 2004a (in 8 bit).

Ā 

Connect Lcd Pin to Esp32 Pins Like this:

Ā 

Ā 

In traditional platform (c, c++, …) we have library to control this lcd (lcd.h), but here we must create our library (for Nano framework).

Ā 

I did that before and you can use it in your projects:

Ā 

AP.Nanoframework.LCD

Ā 

Step 2:

Ā 

Add ā€œAP.NanoFrameWork.LCDā€ in your project

Ā 

Step 3:

Ā 

Just Coding:

CODE
AP.NanoFrameWork.LCD.CharLCD myCharLCD = 
           new AP.NanoFrameWork.LCD.CharLCD(27, 14, 33, 15, 4, 16, 17, 5, 18, 19, 21);
            
            myCharLCD.Begin(20, 4, 1);

            myCharLCD.SetCursor(0, 0);
            myCharLCD.WriteText("Hi friends");
            myCharLCD.SetCursor(0, 1);
            myCharLCD.WriteText("I love Nanoframework");
            myCharLCD.SetCursor(0, 3);
            myCharLCD.WriteText("Github.com/Alirezap");

Note: for esp32, I designed my custom board before

Ā 

Ā 

Schematics

Ā 

Map

Ā 

Code

Ā 

AP.NanoFrameWork.LCD

icon AP.NanoFrameWork.LCD-master.zip 13KB Download(1)

The article was first published in hackster, Jul 8, 2022

cr: https://www.hackster.io/Alirezap/nanoframework-and-lcd-text-base-2e95c0

author: AlirezaP

License
All Rights
Reserved
licensBg
0