Tags: Raspberry Pi wiringpi Zookeeper
1. Void pinmode (INT pin, int mode );
This function sets the Input and Output Modes of the pin and the input and output modes of PWM. InWiringpi onlyPin 1 (bcm_gpio 18) supports PWM output.
2. Void digitalwrite (INT pin, int value );
This function is used to set the level of the pin. When we write high or low (1 or 0),
please refer to the other blog post for the circuit connection method: "Color control for RGB LEDs with Raspberry Pi--c language version"Python code:#!/usr/bin/env python#********************************************************* #File Name:rgb.py#author:jason Dai #Date: 2015/02/04#*********************************************************import Rpi.gpio as GPIOimport timecolors = [0xFF0000, 0x00FF00, 0x0000
Youku Video Address: http://v.youku.com/v_show/id_XMTMxMDY0NzY2NA==.html?from=s1.8-1-1.2Recently in the play Raspberry Pi remote control car, very early on the WiFi remote control to give Nginx+lua, why not python? Because I don't like python.The back can be played outdoors, plus a digital tube and infrared. Digital Tube automatically display the current machine
Raspberry Pi advanced GPIO library, wiringpi2 for python using notes (4) practice DHT11 decoding, gpiodht11
DHT11 is a temperature and humidity sensor with calibrated digital signal output. Precision humidity +-5% RH, temperature +-2 ℃, range humidity 20-90% RH, temperature 0 ~ 50 deg C.
The encapsulated modules I bought contain the pull-up resistor. After checking the
Cross-compiled raspberry pi 2 kernel in CentOS, centosraspberry
Cross-compilation toolchain in centos 6.6 x64 requires glibc-2.14 support (x86 is not needed), so first install the glibc-2.14
Install the relevant compilation tools before installation. Here I will install the entire group directly.
yum groupinstall "Development tools" -y
Download the glibc-2.14 source code, compile, install
wget http://ftp.gn
The first thing to note is that the Raspberry Pi Debian system is automatically scanning the display, in most cases cannot be displayed in full screen, that is, the actual display of the desktop is larger than the display resulting in some windows can not be displayed or closed, Either the actual displayed effect is less than the size of the display, resulting in black border areas around it. If this is the
package for the release. It generates a file with a name similar to "package-version.tar.gz" in the current directory. Package and version are the Am_init_automake (package, version) that we define in configure.in;>>make Distcheck: Generate and test the release package to determine the correctness of the release package. This action will automatically unpack the package file, then execute the Configure command, and do make to confirm that the compilation does not appear error, and finally promp
(c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
MariaDB [(none)]>
Note : Encounter unfamiliar MariaDB, encyclopedia found is a branch of MySQL, completely inherit the usage of MySQL, so also don't worry, but this should be to see personal situation
Change Password
#used in the database
#connecting to a databaseUse MySQL;
#Change Password to 123456, s
configuration files are written
/var/~/var/run/php5-
The path location is written in path_info forwarding. change location
location ~ .*\.php(\/.*)*$
You can solve the problem.
5. The Intranet access is normal. The typecho homepage accessed through the dynamic domain name of the peanut shell is completely white. The CSS file cannot be loaded and the second-level webpage cannot be opened.
In WordPress, there is a blog address setting that can be used to regulate the pointing and forwarding of se
40 Gpio on a Raspberry Pi is the best thing to play.They can be directly controlled by c,/c++, Python, Java and other languages.Now, let's see how to do the same thing with node. js.Before you try, install node. js, and move to: 1. Prepare the Test foldermkdir/home/pi/documents/test-gpio-demo/2. Create a file Package.json{ "name":"Test-gpio-demo", "version":"0.
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_supp
The previous article recorded the Raspberry Pi's own Gpio driver (http://www.cnblogs.com/umbrellary/p/5164148.html), in the bcm2708_ GPIO.C realizes the Gpio drive, but also realizes the drive of the interrupt controller, this paper records the implementation of the driver in the BCM2708_GPIO.C.A bcm2708_gpio_irq_init interrupt initialization function establishes a GPIO interrupt description tableStatic voidBcm2708_gpio_irq_init (structBcm2708_gpio *U
(); Show An error if there is no Gpio controller if (GPIO = = null) { pin = null; Gpiostatus.text = "There is no GPIO controller on this device."; return; } Pin = Gpio. Openpin (Led_pin); Show an error if the pin wasn ' t initialized properly if (pin = = null) { Gpiostatus.text = "There were PR Oblems initializing the GPIO pin. "; return; } Pin. Write (Gpiopinvalue.high); Pin. Setdrivemode (gpiopindrivemode.output); Gpiostat
Install Qt in Raspberry Pi
Blog link:Http://blog.csdn.net/jdh99, Author: jdh, reprinted please note.
Environment:
HOST: win7
Hardware: Raspberry Pi
Steps:
Reference: http://qt-project.org/wiki/apt-get_Qt4_on_the_Raspberry_Pi
firstly I got the development tools needed by QT creator
The DHT11 is a temperature and humidity sensor with calibrated digital signal output. Precision humidity +-5%RH, temperature +-2℃, range humidity 20-90%rh, temperature 0~50℃. I bought a good package of modules, the top with a pull-up resistor, directly to the Raspberry Pi can be gray, purple, blue respectively represents data, 3.3V, 0V, to the Raspberry
VSFTPD is an open source, lightweight, common FTP server. 1, install VSFTPD server (about 400KB) sudo apt-get install vsftpd 2, start FTP service sudo service vsftpd start 3, Edit vsftdp config file sudo nano/etc/vsftpd. conf find the following line, define Anonymous_enable=no means: Do not allow anonymous access Local_enable=yes set Local users can access.Write_enable=yes settings can be written local_umask=022 s
1. System Installation1.1. Download Ubuntu-mate Image: https://ubuntu-mate.org/raspberry-pi/Download SDFORMATTERV4: https://www.sdcard.org/downloads/formatter_4/Download win32diskimager:https://sourceforge.net/projects/win32diskimager/1.2. Prepare a TF card greater than 8GB, using SDFORMATTERV4 format TF1.3. Write Ubuntu-mate Mirror (ubuntu-mate-16.04-desktop-armhf-rasp
Network service networking restart or restart the Raspberry PiTest networking after reboot can be sudo apt-get update or open browser test via graphical interfaceIv. Possible problemsIf you set the default to enter the Raspberry Pi GUI, may enter a user login interface, but do not know the password, ctrl+alt+f1 comman
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
http://blog.csdn.net/qq_33259138/article/details/52143407"The client cannot establish a connection to the remote computer, the remote computer may not support the required FIPS security level," or "the client cannot connect to the remote computer because of a security setting error," When the computer is remote from its Raspberry Pi. After you have determined that you are logged on to the network:1, open th
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.