Open main menu

Changes

Teaching Documents: User Guide

2,759 bytes added, 14:46, 18 December 2015
<big>
== First: setup ==
</big>

Note-1: LCD Power(Your PI must powered by 5V 2A or 5V 3A is better)

Note-2: insert the touch screen driver line and HDMI line

Note--3:
When the screen is unstable and flash, you need to power the lcd external power supply ,After powering , wait for a few minutes until the LCD display stable

<big>
== Second:driving the LCD ==
</big>

For driving the LCD , you can use our configured image provided :<br />

IMAGE/

install the image please reference :(your SD card must be 8G)
Install Raspbian.doc

Also, you can install the driver at youself Raspbian OS. Copy the “Driver”document to your Pi, Then On the LXTerminal, enter<br />

<nowiki>sudo ./LCD7-USB-CAP-show</nowiki>
<nowiki>After reboot ,The LCD can display and touch</nowiki>

<big>
== Third:Virtual Keyboard ==
</big>

Use our configured image provided
Use yourself image

<sub>sudo apt-get update
<nowiki>sudo apt-get install libfakekey-dev libpng-dev libxft-dev autoconf libtool –y</nowiki>
<nowiki>Copy “Software/ matchbox-keyboard “ to your Pi</nowiki>
<nowiki>cd matchbox-keyboard</nowiki>
<nowiki>./autogen.shmake</nowiki>
<nowiki>sudo make install</nowiki>
<nowiki>sudo apt-get install libmatchbox1 -y</nowiki>
<nowiki>sudo nano /usr/bin/toggle-matchbox-keyboard.sh</nowiki>
</sub>

And copy in the text below;<br />
<nowiki>#!/bin/bash</nowiki> <br />
<nowiki>#This script toggle the virtual keyboard </nowiki><br />

<nowiki>PID=`pidof matchbox-keyboard`</nowiki>
<nowiki>if [ ! -e $PID ]; then</nowiki>
<nowiki>killall matchbox-keyboard</nowiki>
else
<nowiki>matchbox-keyboard -s 50 extended&</nowiki>
fi

<nowiki>sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh</nowiki>
<nowiki>sudo nano </nowiki>
<nowiki>/usr/local/share/applications/toggle-matchbox-keyboard.desktop</nowiki>


Copy in this text;<br />

<nowiki>[Desktop Entry]</nowiki><br />

Name=Toggle Matchbox Keyboard<br />
Comment=Toggle Matchbox Keyboard<br />
Exec=toggle-matchbox-keyboard.sh<br />
Type=Application<br />
Icon=matchbox-keyboard.png<br />
Categories=Panel;Utility;MB<br />
X-MB-INPUT-MECHANSIM=True<br />

<nowiki>nano ~/.config/lxpanel/LXDE-pi/panels/panel</nowiki><br />

Find this section of config (it is near the bottom);<br />
Plugin {
type = launchbar
Config {
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop
}
}
and change it to;<br />

Plugin {
type = launchbar
Config {
Button {
id=toggle-matchbox-keyboard.desktop
}
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop
}
}
Save and exit, After reboot ,you can use the software keyboard