On-line tutorials, general Python with Rpi.gpio to control the Raspberry Pi Gpio, and C + + generally use WRINGPI library to operate Gpio,rpi.gpio too simple, many advanced features do not support, such as I2C/SPI library, etc., but also lack of high-precision timing and other advanced features. In contrast, WIRINGPI is rich in functionality, but in fact WRINGPI already has Python bindings that can be very
Raspberry Pi 2 installs mono3.0 to run mvc4 and mono3.0mvc4
Sudo apt-get updateSudo apt-get upgradeSudo apt-get mono-completeHttp://www.linuxdot.net/down/jexus-5.4.3.tar.gz wget-cTar zxvf jexus-5.4.3.tar.gzCd jexus-5.4.3Sudo./install
Then download the patch, http://www.linuxdot.net/down/jws-5.4.3-pi.rar1. download and install the jexus-5.4.2 or 5.4.3 or 5.4.3.1.2. If jexus is already working, stop it.Copy
-zenheiWill install Wenquanyi Zen Hei open-source Chinese font, here to Wenquanyi Zen Hei salute, it seems that it is the only open source Chinese font library. Guo Jia had the money to build a Confucius Institute, but never had the money to do a more complete open source Chinese font.Chinese can be displayed, input it? Linux has long been, called SCIM (Smart Common input Method), so just enter:sudo apt-get install Scim-pinyinwill be installed pinyin input method, after the installation is compl
To set the time zone for the Raspberry Pi, use the following command:
sudo dpkg-reconfigure tzdata
After executing the command, you need to wait a little bit, then come out the time zone selection interface:
Note that if you do not see this interface after executing the command, but instead see a bunch of garbled characters, then you need to set up SSH or other termi
Tags: Raspbian http requires div min password alt mic flowRaspberry Pi-MySQL installation linuxmysql
Yesterday is a and tomorrow is a mystery, and today is a gift.
Pre-orderMySQL on the Raspberry Pi raspberry the installation and on the Linux on the same, because the online tutorial is on
value is-1, 0, it indicates timeout, and 1 indicates successful interruption. Before calling this function, we need to initialize gpio.
For example, we want to set gpio 0 to wait for the disconnection of the descent edge:
We need to run gpio edge 0 falling on the terminal before running the program.
2. Int wiringpiisr (INT pin, int edgetype, void (* function) (void ));
This function uses a function as a parameter to obtain the interrupt at a
Python implements the example code of Raspberry Pi WiFi disconnection automatic reconnection, pythonwifi
Enable Automatic reconnection of Wi-Fi disconnection. The principle is to use Python to monitor whether the network is disconnected. If the network is disconnected, restart the network service.
1. Put the Python code autowifi. py in the/home/pi directory:
#
The simplest of a Raspberry Pi Gpio operation Getting started, here is a record of the followingFirst on the connection diagram:Horizontal slots. Figure Akzent The BigUsing the Gpio gnd and #18 pins, this is not, the red wire is 18 pins, the dark line is the GND pin, the following Python code:1 #Coding:utf-82 ImportGpi.gpio as GPIO3 Import Time4 5 Gpio.setmode (GPIO). BCM)6 gpio.setwarnings (False)7Gpio.set
The complete effect of these 4 battles is: Let the Raspberry Pi send its own IP address to the mailbox automatically by mail.Combat 2 : http://blog.csdn.net/make_app/article/details/47305179Combat 3 : http://blog.csdn.net/make_app/article/details/47305337Combat 4: http://blog.csdn.net/make_app/article/details/473053870. System EnvironmentRaspberry Pi A +, system
Tip : This article is for Archlinuxarm, and other Linux distributions should be replaced with the corresponding commands according to the actual situation.Step 1, check if the operating system has detected a wireless cardRun the following command on the terminal:
Lsusb
Copy CodeIf you can see your wireless network card (I use the Tenda w311mi, Master Ralink RT5370), it means that the wireless
Today I turned over the old data and found something. When the company's servers were not in place (startups had no way).Talking about the server, a colleague took out his raspberry Pi.I think, I can do it. Go would have supported multiple platforms. Redis is written in C and should not be a problem.Finally, although the middle walk a little detour, but fortunately, can run up.Golang:1. Download the 1.4.2 source package from the official website. Do n
#文中设置均基于最新版的Raspbian系统2016-Version 11
Raspbian in the desktop environment, the system will go into hibernation after a period of time. Tried some methods such as directly with Xset close DPMS, is not successful.
Raspbian uses a lightweight desktop display manager that is LIGHTDM, which allows you to set up Xserver desktop session interaction \ Display, and so on.
1. Open the terminal;
2. Edit/etc/lightdm/lightdm.conf
3. Locate the ' Xserver-command '
0. Power supply is micro USB (Android power connector)
1. Download the operating system from the official website and write the memory card with Win32diskimager.
2. Locate the IP and set the static IP under the router:
Command: sudo vi/etc/network/interfaces
Switch
Auto LoIface Lo inet LoopbackIface eth0 inet StaticAddress 192.168.1.88Netmask 255.255.255.0Gateway 192.168.1.1Allow-hotplug Wlan0Iface Wlan0 inet ManualWpa-roam/etc/wpa_supplicant/wpa_supplicant.conf
3. Computer network cable direct
Raspberry Pi has two audio output modes: hdmi and headphone interfaces. You can switch between the two modes at any time.
If your HDMI monitor has a built-in speaker, the audio can be played through the HDMI interface. You can also switch to the headset interface to use the speaker of the headset or other headset interface to play the video. If your monitor requests support from the speaker, the sound is ou
This blog will show you how to install three different text-based Web browsers on Raspberry Pi. The original article can be found here or at the bottom of this article. Most Web browsers run a little hard on the small school, or consume a lot of resources, so an alternative solution is to use a web browser based on command line.
So far, text-based browsers have not been able to do anything that a common bro
Realize the WiFi disconnection automatically, the principle is to use Python to monitor whether the network is disconnected, if the disconnection will restart the network service. Next to everyone to share the implementation of code, need to refer to the friend
1.Python code autowifi.py, placed in the/HOME/PI directory:
#!/usr/bin/pythonimportos, Time whiletrue: if ' 192 ' not in Os.popen (' ifconfig | grep 192 '). Read (): print ' \n**** * * W
The raspberry Pi2, introduced in February 2015, cannot be installed Lazarus with the previous method, and when installing the FPC, the following problem stops the installation.Find a solution from http://otapi.com/2015/02/10/raspberry-pi-2-freepascal-lazarus-and-delphi/:1. Installing Subversion and unzipSudo apt-get UpdateSudo Apt-get Install Subversion UNIZP2. g
To play a video, use the "cd" command on the command line terminal to switch the path to the directory where your video file is located, and then enter the following command:Omxplayer example.mp4In this case, the full screen upload example.mp4 file can be exited by pressing CTRL + C.Example video sample: big buck bunny (example Video: taoxiao rabbit)Here is an example video that can be played on Raspberry
This is a creation in
Article, where the information may have evolved or changed. Today I turned over the old data and found something. When the company's servers were not in place (startups had no way).
Talking about the server, a colleague took out his raspberry Pi.
I think, I can do it. Go would have supported multiple platforms. Redis is written in C and should not be a problem.
Finally, although the m
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.