Beginner Python , try to change the program that was previously written in C on the Raspberry Pi. Python version of the. Four-bit common yin digital tube and Raspberry Pi Circuit connection method is as follows:A ~ p-------------------------------GPIO0 ~ GPIO7D1 ~ d4-----------------------------GPIO11 ~gpio8Here is the
Raspberry PI Series--bare metal illuminated LED lightsBackgroundRecently just bought Raspberry PI B +, configured to run the official Raspbian system, tossing a week Linux system, feel no meaning, so try to understand the bottom of the start process, through a few days of research, It is found that the boot of the lowe
Raspberry Pi 2 install the latest version FPC and Lazarus 1.5
The Raspberry Pi2 launched in February 2015 does not support Lazarus installation using the previous method. When installing fpc, the following problems occur.
Slave:1. Install subversion and unzipSudo Apt-get updateSudo Apt-get install subversion unizp2. Obtain and compile the latest FreePascal Compil
Pi uses the BCM2836 of the ARMV7 architecture to download the cross compiler ARM-LINUX-GNUEABIHF-GCC.Local Environment: UBUNTU14 + x86_641. Download the compiler address:1). Linaro Open Source organization has the relevant cross-tool chain download, click to enter the page to choose to download, address: https://launchpad.net/linaro-toolchain-binaries/+download 2). The above web site speed is slow, always download failed. Find the domestic website H
1. Preface:
You need to understand the concept of Bitcoin
You need to know the computing power of the Raspberry Pi, which is much less effective than the graphics card mining, the baked cat, the USB mining, etc.
If you want to toss it, come on. 2. Prepare:
You want to dig Bitcoins, first of all to know where to dig Bitcoin, Bitcoin is in a mine, so we register the mine pool account
It could be that the BT
Recently in the toss Raspberry Pi, at that time also did not pay attention to, look at the price, bought Mercury network MW150US Ultra-small 150M wireless USB card. But the tragedy was to use iwconfig and not recognize the wireless card But with lsusb words can see MW150US with is Rtl8188eu chip, search on the network, finally found a solution 1. first download the latest Linux kernel for compiling and inst
their liking, generally not necessaryBoot auto StartTo set the boot up, you need to/etc/init.d/To create a file in$ vi/etc/init.d/tightvncserver#!/bin/sh# # # BEGIN INIT INFO# Provides:tightvncserver# Required-start: $local _fs# Required-stop: $local _fs# Default-start:2 3 4 5# default-stop:0 1 6# Short-description:start/stop Tightvncserver# # # END INIT INFO# More details see:# HTTP://WWW.PENGUINTUTOR.COM/LINUX/TIGHTVNC# # Customize This entry# Set
First download Ubuntu,3: ubuntu-16.04Extract files to get close to 4G image fileAdd an SSH text document. Login ID and password are: UbuntuChange PasswordAdd VNC Interface Remote control: First update the software library and download VNCsudo apt-get updatesudo apt-get install TightvncserveStart VNCTightvncserverSet VNC boot up and edit with nano text editor:sudo nano/etc/init.d/tightvncserverEnter the following command:#!/bin/sh### BEGIN INIT info# p
First, why Choose OpenelecRASPBMC the volume of large functions, the corresponding speed and performance to be weak; Openelec is a lite version, small size function, the corresponding speed and performance have been improved. This depends on our choice, if you like me with multiple sdcard to play Raspberry Pi, then use Openelec as a home Media Center is the most suitable.It is small in size, please refer to
The content of this article is Raspberry Pi python get GY-85 nine axis module information example, here using Python curses package development cli window program, used to refresh the sensor reading in real time, see the code first
GY-85.py:
The code is as follows:
#! /Usr/bin/python3#-*-Coding: UTF-8 -*-Import cursesFrom time import *From i2clibraries import i2c_itg3205, i2c_
Uwsgi_params;Uwsgi_pass Unix:/tmp/uwsgi.sock;}}Then use the LN command to create a link to/etc/nginx/sites-enable/, Link's name is also called site, delete the Sites-enable directory under the default link:sudo ln-s/etc/nginx/sites-available/site/etc/nginx/sites-enabled/( Note: This is ln's lowercase command )sudo rm/etc/nginx/sites-enabled/default4) Start deployment1. Start Uwsgi, command is sudo uwsgi-x myapp_config.xml, will play a lot of words, if not loaded project success can be seen from
() - whileGpio.input (echo_pin): + Pass At2 =time.time () at return(T2-T1) *340/2 - - Try: - whileTrue: - Print 'distance:%0.2f M'%checkdist () -Time.sleep (3) in exceptKeyboardinterrupt: -Gpio.cleanup ()found that the catch of the exception is for Crtl+c trigger, before my several modules if the output of the CTRL + C or will continue to output, I can only write a script to close the output of the corresponding pin, wi
/mmcblk0 mkpart logical ext4 10.1GB 11.1GB```mkpart是创建分区参数logical 分区类型(primary extend logical)ext4 文件系统类型 10.1GB 分区开始位置(根据最后一个分区的End来确定,之前代号为5的分区End值为10.1GB,所以这里我们从10.1GB开始)11.1GB 分区截止位置建好分区后,还要通过partprobe命令,强制将分区信息写到磁盘div class="se-preview-section-delimiter">div>Write code here"'The last two methods require file system creation after the partition is created and mounted on the bootpartprobeThe last two methods require file system creation a
that the appropriate content is modified according to the actual situation:
[Unit]
Description=wireless Static IP Connectivity
Wants=network.target
Before=network.target
[Service]
Type=oneshot
Remainafterexit=yes
Environmentfile=/etc/conf.d/wifi
EXECSTART=/SBIN/IP Link Set Dev wlan0 up
EXECSTART=/SBIN/IP addr Add 192.168.34.1/24 broadcast 192.168.34.255 Dev Wlan0
EXECSTOP=/SBIN/IP addr Flush Dev Wlan0
EXECSTOP=/SBIN/IP Link Set Dev
sudo nano/etc/ntp.confAnd then find
# pool.ntp.org maps to about low-stratum NTP servers. Your Server would# Pick a different set every time it starts up. Please consider joining the# Pool: Server 0.debain.pool.ntp.org IburstServer 1.debain.pool.ntp.org IburstServer 2.debain.pool.ntp.org IburstServer 3.debain.pool.ntp.org Iburst
Or something like that, change it to
# pool.ntp.org maps to about low-stratum NTP servers. Your Server would#
motion #counterlastuploaded =timestamp Motioncounter=0#Otherwise, the hostel is not occupied Else: Motioncounter=0#Check to see if the frames should is displayed to screen ifconf["Show_video"]: #Display the security feedCv2.imshow ("Security Feed", frame) key= Cv2.waitkey (1) 0xFF#if the ' Q ' key is pressed, break from the Lop ifKey = = Ord ("Q"): Break #clear the stream in preparation for the next frameRawcapture.truncate (0)Conf.json{ "Sh
and is easily downloaded and modified by the reader.The following books will not be introduced, share the graphic coverHere is still to recommend my own built Python development Learning Group: 725479218, the group is the development of Python, if you are learning Python, small series welcome you to join, everyone is the software Development Party, not regularly share dry goods (only Python software development-related), Including a copy of my own. 2018 Latest Python Advanced materials and high
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.