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),
tube. The pin is also attached to any of the Raspberry Pi's gpio ports.
OE is the output enable PIN, which is also common in other chips. The function is to control whether the data in the latch is ultimately output to the Q0-Q7 output pin. Low-power output, high-power normally not output (neither high-level, nor low-level but high-impedance state, no power). In order to facilitate direct connection to GND, this example keeps the output data low.
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
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
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
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
Tag: Exec mil user mode script power option run use ConfigUse cron to boot upbooting with/ETC/INIT.DThere are a lot of scripts under the/etc/init.d folder under the Raspberry Pi, such as cron we've learned about. This cron script wraps the cron daemon into a service that defines its behavior at startup, restart, and termination. This way, users do not need to make too complex settings when they enable the a
-config.phpAdd:define ( ' Use_mysql ' ,false); Tip : with xftp transfer files, or directly wget , it's slow. I put the SD card in the notebook to operate directly. 2 download, install sqlite plugins to wordpress ( wordpress support sqlite Address:http://wordpress.org/plugins/sqlite-integration/ unzip the plug-in package tounpack the package and put it intowp-content/plugins/directory, and then put the inside of the packagedb.phpcopied toWp-contedirectory. finallySDboot on t
The latest is:https://www.offensive-security.com/kali-linux-arm-images/According to the official website is unable to find the Raspberry Pi version of the sha1sum and SHA1SUMS.GPG files, so the official network below the verification can not continue to do:Use Win32diskimager to write the downloaded image to the TF card, connect to HDMI, the screen will display normally until the login screen, using the roo
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.
Deployment of Zen Road management system using Raspberry PiApt-get Install Apache2Apt-get Install PHP5Apt-get Install Mysql-serverApt-get Install Mysql-clientApt-get Install Php5-mysqlAfter completing the above, reboot your system, rebootThis will see the detailed process ... To test the Apache server, you can see the IP address of your own Raspberry Pi.Cd/var/www/htmlwget http://dl.cnezsoft.com/zentao/8.2.
!). )
3.2) Turn on the forced HDMI output: (Many of the current monitors are not recognized on the Raspberry Pi)In the TF card partition, open the Config.txt file (post-boot location:/boot/config.txt), modify the following:config_hdmi_boost=4 #开启热插拔Hdmi_mode=#分辨率为适应屏幕分辨率的选择hdmi_group=2 # 1:CEA TV monitor 2:DMT computer monitordisable_overscan= #can remove the black border around the boot screenDtparam=
(); 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
Ubuntu Raspberry Pi 2b cross compiling environment, ubuntu2b
Generate executable code on another platform. Why is cross-compilation costly? One sentence: The last thing is. Sometimes it is because the target platform does not allow or cannot install the required compiler, and some features of the compiler are required. Sometimes it is because the resources on the target platform are poor, it is impossible t
1. Raspberry Pi has been on the black screen for some time, which is what we often call the suspend state. So please use the Xset tool to set it up.Xset s offXset DPMS 0 0 02.apt-cache Search: Find some of the necessary installation software3. Do not let the Raspberry Pi int
be on the Pi and not remotely a Ccessing it.I added a gcc toolchainOptions > Build Run > Tab tool Chain > button addChoose GCC
Then set compiler path:/usr/bin/arm-linux-gnueabihf-gcc-4.6
Debugger:/usr/bin/gdb
Mkspec:default
Qt Creator seems to detect, we is going to deploy on a remote target.To fix this:
Go to menu Help > About plugins
Uncheck Device Support > Remote Lin
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.