sleep 0.5 play 62 sleep 0.5 play 64 sleep 0.5 play 60 sleep 0.5end
You can enter frere to call this method later. For example, call in a loop:
4.times do frereend
6. Synths (synthesizer)
The synthesizer enables the play method to make different sound effects. The default synthesizer is "pretty_bell", but you can change it by yourself:
"pretty_bell""dull_bell""beep""saw_beep""fm"
Try different synthesizer:
with_synth "fm"2.times do play 60 sleep 0.5 play 62 sleep 0.5end
7. threads
add the configuration file HOSTAPD and make it effective:sudo nano /etc/default/hostapdRemove the gaze symbol and fill in the path of the above configuration file under daemon_conf:DAEMON_CONF="/etc/hostapd/hostapd.conf"Last reboot:sudo reboot3.2. Set up WiFi hotspot using router modeThe main use of the UDHCPD tool is to automatically assign an IP address to a device connected to WiFi and, of course, to replace it with other DHCPD tools.To change the UDHCPD configuration file:sudo mv /etc/udhcp
from the Yeelink website, combined with open source hardware or yeelink dedicated hardware, Almost without any programming, you can create quite complex iphone remote switches, remote water heaters, or DIY works such as PM2.5 detectors.Yeelink platform address is http://www.yeelink.net/, registration is very simple, after registration, we can in the "Account settings" to obtain the exclusive API KEY.API key is very important, the next step to modify the Python program upload data to the Yeelink
I learned the Linux system with a magic Raspberry Pi board.Raspberry Pi is an ARM-based micro-computer motherboard With a shape of only the size of a credit card. Therefore, it is also known as a new card-type computer. Raspberry Pi has all the basic functions of the compute
First, install the Raspberry Pi and Arduino development environment
1, Arduino development environment in the previous article has been explained that the need for friends can see "Arduino Control two motor Movement" this blog post.
2. Building a Raspberry Pi serial communication development environment
(1) Install Py
distance of the obstacle. The Grove-ultrasonic Ranger has four pins, namely power supply, ground, signal pin, and one pin dangling. Connect the Raspberry Pi and module as follows: After checking out the code from GitHub, enter it in the Raspberry Pi terminal lxterminal:CD "Grove–ultrasonic Ranger"sudo python ultrason
, signal pin, and one pin dangling. Connect the Raspberry Pi and module as follows: After checking out the code from GitHub, enter it in the Raspberry Pi terminal lxterminal:CD "Grove–ultrasonic Ranger"sudo python ultrasonic.pyThe Raspberry
configured by the board support Code, but the intention was to
Eventually reach that goal.
On Raspberry Pi, Device Tree usage is controlled from/boot/config.txt. By
Default, the Raspberry Pi kernel boots with device tree enabled. You can
Completely disable DT usage (for today) by adding:
Device_tree=
Raspberry Pi on the Cloud (1): Environment preparationRaspberry Pi on the Cloud (2): Uploading sensor data to AWS IoT and leveraging Kibana for presentation1. Sensor installation and configuration 1.1 DHT22 installationThe DHT22 is a temperature and humidity sensor with 3 pins, the first pin on the left (#1) is the
The Internet of Things (IoT) and Bitcoin (Bitcoin) are all fun new things today, so what's the point of putting them together? In short, it is the use of Bitcoin networks for secure, autonomous trading of transactions involving computing resources, storage resources, bandwidth, data, and even public displays that can help other devices display content. The middle will involve sensors, IoT short-range commun
If the device is not received, after using VNC login, the display resolution is very small, should be 480p, resulting in a very inconvenient use.By modifying the/boot/config.txt file, the desktop can also be displayed at a set resolution when the monitor is not connected. Here's how:1. Open Config.txt FileMethod One: Use the SD card reader to open the Config.txt file in the boot folder in the Windows environmentMethod Two: After entering the raspberry
Use Raspberry Pi to build your own web server (I) install LAMP and raspberry lamp1. Adjust pi GPU memoryOccupiedSize
As a web server, you do not need to output video signals. Therefore, reduce GPU memory usage to maximize pi performance.
1 sudo raspi-config
Select Advan
people a different sense of motivation and sense of accomplishment than virtual machines. Of course, in terms of playability, Raspberry Pi can also do a lot of interesting things. Daoteng aircraft, remote control toy car, controlled home appliances, control access, make super computer and so on. The main thing is to be interested. And I was trying to get
header file:
#include
Define timer pointer, claim slot function update ():
Private:
Qtimer *timer;
Private slots:
void update ();
Dialog.cppAdd the following code to the constructor:
Timer = new Qtimer (this);
Connect (timer, SIGNAL (), this, SLOT (update ()));
Timer->start (3000);
The first line initializes the timer pointer, the second line is the timer's time drain signal and the update () slot function connection, the third line is the start timer. According to the description
reprinted from http://ukonline2000.com/
Raspberry Pi System image burned to MICRO-SD cardPosted on December 14, 2015
Preparatory work:
1. A 2G or more SD card, preferably a high-speed card, recommended CLASS4 more than the card, because the card speed directly affect the speed of the Raspberry Pi.
2. Download the
Install a lamp environment for Raspberry Pi in the past two days, but there are too many things installed on it, and the default system space is occupied. But the SD card itself is 16 GB. What if I want to extend the Raspberry Pi to a larger space? I can continue to install
How to Build the Net and NodeJS runtime environments of Raspberry Pi, raspberry nodejs
The following are the resolutions used by computer monitors. Hdmi_group = 2hdmi_mode = 1 640x350 85Hzhdmi_mode = 2 640x400 85Hzhdmi_mode = 3 720x400 85Hzhdmi_mode = 4 640x480x640x480 72Hzhdmi_mode = 6 640x480 rows = 7 640x480 85Hzhdm
Use Raspberry Pi to build your own web server (2) set up Apache and raspberry apache
1. Obtain the Server IP Address:
1 ifconfig
2. Change the local hosts file
If you want to enter a domain name in your browser to access your server, you need to change the hosts file in your computer.
Linux:
1 sudo vim /etc/hosts
Windows:
1 C:\Windows\System32\drivers\etc\hosts
Piinstalling Mosquitto on a Raspberry Pi is similar to other platforms, and may be slightly longer if the Raspberry Pi platform is compiled directly. Mosquitto Source Generation package is not big, so compile time tolerable.1.1 Installation as of September 2014, the latest version is mosquitto-1.3.4. Create a new dire
How to run Ubuntu Snappy Core in Raspberry Pi 2
The Internet of Things (IoT) era is approaching. Soon, in a few years, we will ask ourselves how we were able to survive without the Internet of Things, just as we now suspect that there was no mobile phone in the past. Canonical is a fast-growing but open-market competit
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.