Mount a directory under/sys/power to control LED lights of the Development Board
1. driver source code
#include
2. Load the kernel to compile and generate the zImage file, and then download it to the Development Board.
Execute echo 1>/sys/power/leds. The light is on.
Run echo 0>/sys/power/leds to turn off all lights
Note: The default file system of the Development Board already has an led test program.
Jquery produces LED clock effects and jqueryled clock Effects
The source code of the HTML file is as follows:
Copy codeThe Code is as follows:
Usage:
Use the jquery.keleyilcdclock.css file and the jquery. KeleyiLCDClock. js file.Then define the id of the div, such as keleyitime, and then set the time and use the KeleyiLCDClock () method.$ ("# Keleyitime"). text (Date ());$ ("# Keleyitime"). KeleyiLCDClock ();
The above is all the code for using jQuery
This article was reproduced from: http://m.blog.csdn.net/kris_fei/article/details/69553422Platform:rockchipOs:android 6.0kernel:3.10.92Because the board does not have LCD can not know the SD card upgrade is completed, so use LED display.Control the Gpio output high-lit LEDs after the upgrade is complete in the recovery.system comes with Gpio control driver:The kernel has its own generic Gpio driver and can operate directly in user space.Path:/sys/clas
1. We click on the phone to open to enter the "application" effect as shown below.
2. After that you will find that there is a "set" in the application interface to click on it to open.
3. Click on the "Voice and notice" option, click on it to enter the effect below.
4. Then we find the "led" right slider, the Green Representative is turned on.
All right, then. When charging, recording, or receiving no
Whether it is a buzzer or LED digital tube display, in fact, the two for code writing is not much different, are gpio a typical application. Red Bull Development Board has a buzzer, and EM-STM3210E has a four-bit led digital tube, the code is relatively simple, not worth the two write a separate blog, so the two in one article to explain, but two sample code is independent.
First, the buzzer, check the sch
LED Electronic display system touched by the products are anti-acid rain, salt spray, waterproof, moisture, dust, anti-incineration, anti-corrosion and other disposal, after salt spray experiment, the results show that: The products are reached the national industrial norms, in accord with the requirements of salt fog test, even under the conditions of oceanic climate, The screen can also be used for a long time. Below, chip photoelectric for you to a
First of all, the implementation of the LED driver principle, the Linux driver is not directly to the memory of the hardware to write data, but with the native I/O memory interaction, each of the hardware connected to Linux in I/O memory will have a map of the first address.To write the driver, first create the LED-driven device file:1. Initialize the Cdev with the Cdev_init functionDescribing the device fi
The last time I introduced how to remotely monitor the indoor temperature, I am very pleased with the enthusiastic response. But then again, the implementation can only be remote monitoring of the temperature in the home. If you find that the home is very hot and want to remotely turn on the air conditioner switch to reduce the temperature in advance, it will not be very good after you go home. How can this be done. The following describes how to implement remote control. Of course, the author's
My system used to enter the login interface before entering the login password when the Num lock LED is always bright, but then I do not know why it is not lit: the NUM LOCK LED is on at startup, but when the scroll bar to 2/3, the NUM LOCK led automatically off, Enter the login interface required to enter the login password, the numeric keypad is not available,
Profile:
This section is mainly recorded in the tiny 6410 Development Board written in the bare Metal program key interrupt control LED light.
8 user-defined keys are configured in the Tiny6410, and KEY1 is used to control the LED1~LED4. The key and led circuits are as follows:
K1 corresponds to the external interrupt Eint0,led1~led4 configuration method as described in the article Embedded bootloader Deve
Evaluate led standards
Reprinted from: http://www.eslighting.cn/2010/0419/162_2.html
Author: LED times Network
As a lighting product, the following factors must be taken into account:Luminous flux and Efficiency Colors, colors, heat dissipation design, and reliability
1. Luminous flux and efficiency (typical brands)
3000 K
4000 K
6000 K
rebel Phili
Main push sd6602d/sd6603d/sd6604d isolation advantage Scheme Q q 2892715427The main push sd6602d/sd6603d/sd6604d is a high-precision, low-cost primary feedback LED constant current drive chip, should beFor flyback isolation LED illumination.The chip works in the inductive current discontinuity mode, which is suitable for 90vac~265vac input voltage,Output power below 18W.The main push sd6602d/sd6603d/sd6604d
After a few days of learning, finally the basic framework of Linux drive to figure out ... Really hard,,, but finally still boil over, although still the most basic,,,Tonight also finished my first Linux drive,,, Heart still a little excited, haha o (∩_∩) oDirectly on the drive source program:::My Development Board is Smart210, according to schematic, IO port output 0 LED light, Output 1 led off#include #in
After the previous migration, the kernel can already mount the root filesystem on tqimx6q, and then start porting all kinds of device drivers, this article first to transplant the keys and LEDs. The reason to start with the keys and LEDs is that the drivers for both devices are the simplest.Key-driven portingView the schematic of the tqimx6q that the Development Board has 5 keys, which, in addition to the reset key, there is a power button, this power key and other keys are somewhat different, s
EmbeddedLinux Bare Metal Development (i)--light Led Development Board: Friendly arm smart210First,Circuit Diagram Inspection1. Floor circuit diagram Consult the Board circuit diagram of the development boards, consult the LED related partsLED Circuit Working principle:650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/82/5E/wKioL1dSyoCwaSpsAAAbV0ZVsno967.png "title=" Picture 1.png "alt=" Wkiol1dsyoc
Document directory
(1) create a workspace and a project
(2) Configure general options
(3) linker settings
(4) debugger settings:
(1) create a program file
(2) Introduce header files
(3) define led pins
(4) Main Function
(5) code Overview
I. Connecting
In the previous article "ZigBee journey (1): setting up the ground", we briefly introduced Zigbee and the establishment of its development environment. Okay, now the tools are complete, and
I. When it comes to the bare metal program of arm, many people will immediately think of a development tool named ads, but we can also do the bare metal program of arm in Linux, the specific implementation process is as follows:
Step 1: edit the code.
Step 2: Compile the Code. The Code is divided into three parts: 1. Link Script 2. Use the command line to determine the file sequence during the link 3. Use the command line to compile the code. The three parts can all be written as a MAKEFILE file
Android system transplantation and driver development-Chapter 7-LED driver and android driver development
Implementation principle of LED Driver
Write LED driver:
Before testing the LED driver, you need to use a USB data cable to connect to the development board, and then turn on the power. After the startup is succes
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.