Joy-it RB-LCD-16x2 Скачать руководство пользователя страница 1

 

Published:  22.08.2019  

Copyright by Joy-IT 

 
 

3

 

LCD Display 20x4 with Buttons 

LCD Display 16x2 with Buttons 

3

 

Содержание RB-LCD-16x2

Страница 1: ...Published 22 08 2019 Copyright by Joy IT 1 3 LCD Display 20x4 with Buttons LCD Display 16x2 with Buttons 3 ...

Страница 2: ...ublished 22 08 2019 Copyright by Joy IT 2 3 LCD Display 20x4 with Buttons Index 1 Connecting the Display 2 Installing the System 3 Usage Example Code 3 1 RB LCD16x2 Version 1 3 2 RB LCD16x2 V2 4 Support ...

Страница 3: ...thank you for purchasing our product Please find our instructions below 1 Connecting the Display Plug the display onto the pin header of your Raspberry Pi so that the display is placed over your Raspberry Pi As soon as you power your Raspberry Pi the displays backlight should start to light ...

Страница 4: ... Raspbian software on your Raspberry Pi and continue with the next step If not please follow the instructions Install the latest Raspbian System Image to your SD Card You can download the image here Transfer the image with a suitable program e g Etcher You can insert the SD Card to your Raspberry Pi and start the system when the transfer progress is complete ...

Страница 5: ... 20x4 with Buttons 3 Verwendung Code Beispiel Before using our RB LCD16x2 you need to determine which version you own The following two pictures show you how to recognize this RB LCD16x2 Continued from page 6 RB LCD16x2 Version 2 Continued from page 10 16x2 ...

Страница 6: ...ation You may need to adjust the contrast manually before you can see an output on the display Adjust the contrast by turning the adjusting screw with a small screwdriver To get the display fully up and running you can either download the example code here or even create a new file and paste the code below To create a new file use the following command sudo nano lcd16x2 V1 py ...

Страница 7: ...PUTS SW1 SW2 SW3 SW4 HD44780 Controller Commands CLEARDISPLAY 0x01 SETCURSOR 0x80 Line Addresses Pick one Comment out whichever doesn t apply LINE 0x00 0x40 0x14 0x54 for 20x4 display LINE 0x00 0x40 for 16x2 display def InitIO Sets GPIO pins to input output as required by LCD board GPIO setmode GPIO BCM GPIO setwarnings False for lcdLine in OUTPUTS GPIO setup lcdLine GPIO OUT for switch in INPUTS ...

Страница 8: ...7 bool data 0x80 def SendByte data charMode False send one byte to LCD controller GPIO output LCD_RS charMode set mode command vs char SendNibble data send upper bits first PulseEnableLine pulse the enable line data data 0x0F 4 shift 4 bits to left SendNibble data send lower bits now PulseEnableLine pulse the enable line def InitLCD initialize the LCD controller clear display SendByte 0x33 initial...

Страница 9: ...CURSOR addr Main Program print LCD program starting Press CTRL C to stop InitIO InitLCD ShowMessage Press a button while True GotoLine 1 switchValues CheckSwitches decimalResult d d d d switchValues ShowMessage decimalResult time sleep 0 2 You can save the file with the keyboard shortcut CTRL O and exit the editor with CTRL X You can then execute the file with the following command sudo python lcd...

Страница 10: ...rst install a library for the display You can do this in the console with the following command It may be necessary to manually adjust the contrast before you can see an output on the display Adjust the contrast by turning the potentiometer with a small screwdriver which is marked red in the lower picture sudo pip install adafruit charlcd ...

Страница 11: ...an do this with the following command in the Raspberry Config Select the option Interfacing Options with the key Enter Then you have to select the option I2C You have to confirm the next message with Yes and then you can leave the settings on Finish I2C is now successfully activated now the display can be used sudo raspi config ...

Страница 12: ...ols lines 16 2 Instantiate LCD Display lcd Adafruit_CharLCD lcd_rs lcd_en d4 d5 d6 d7 cols lines gpio GPIO lcd clear lcd message xx RB LCDV2 Test xx n 1234567890 You can save the file with the keyboard shortcut CTRL O and exit the editor with CTRL X You can then execute the file with the following command sudo python lcd16x2 V2 py You can either download the sample code or create a new one yoursel...

Страница 13: ...chase If there are any questions left or if you encounter any problems please feel free to contact us by mail phone or by our ticket supportsystem on our website E Mail service joy it net Ticket System http support joy it net Phone 49 0 2845 98469 66 11 18 Uhr Please visit our website for more informations www joy it net ...

Отзывы: