=============================================================================================================== =====================
First, the hardware pin description
The tiny6410 Development Board has 4 user programmable LEDs located on the core board directly connected to the CPU's gpio.
Led detailed resources occupy the following table:
LED4 LED3 LED2 LED1 GPIO GPK7 GPK6 GPK5 GPK4
Second, bare-metal program Description
The Tiny6410 uses the foll
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
I. Tutorial Purpose Learn how to use Arduino ide. For details, refer
Http://www.arduino.cn/thread-1065-1-1.html learning Programming Control LED blinking Arduino related syntax Basics
Ii. Experimental Equipment
Device Name
Quantity
Arduino Control Panel (UNO R3)
1 block
USB data cable
1 Root
Bread
1 block
LED Light Emitting Dio
The main steps of the simple led program are as follows:First: Create LED-driven device files1. Initialize the Cdev with the Cdev_init function2. Specify the device number3. Use the Cdev_add function to add a character device to a character device array in the kernel4. Create Struct_class using Class_create macros5. Create a device file using the Device_create functionII: Uninstall the
LED display compared with LCD display, led in brightness, power consumption, visual angle and screen update rate, etc., have more advantages. LED and LCD power consumption is about 10:1, and the higher update rate makes the LED in the image has better performance, can provide 160° perspective, can display a variety of
Experimental purpose
Flash light Program in embedded learning like "Hello world." "It's just as Classic in C + + language learning. It guides countless embedded enthusiasts in a simple way. With this section you can learn a basic understanding of STM32 's Gpio and the use of basic timers.
Hardware description
This routine requires a timer and an LED, where the LED is the red
Today, I finally tested the LED driver in Linux for te6410. Looking at the flickering led, I felt a long-time success!
First, paste the LED driver code:
// # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include # Include
# Define device_name "LEDs"# Define led_major 231
Static u
LED light dimming basics:There are two ways to ☆:led light dimming control signals:
1. Control the duty ratio of the LED lamp switching power supply through PWM signal to achieve dimming;
2. Two-wire or three-line type (e.g. LED phase dimming) 3 by dimming control signal and AC power supply line
. D
In the previous article, the installation of the SD card's bare-metal development environment and the OK6410 start-up settings were mentioned, and this chapter began to enter the blinking control of the LED lights.1, first open the OK6410 Development Board schematic diagram, find led and other control schematic parts, such as 1 shown.650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7F/9D/wKiom1ck2
I wrote an LED driver over the past two days and read many posts online.
The idea is very clear at first, that is, first look at the circuit diagram and find that the LED lights are connected to the GPM port,
Then, let's look at the data manual, first to gpmcon port write command words, let the GPM0-5 set to output, and then write data to the gpmdat port, in the GPM0-5 pin to pull low or pull high level,
To
The main points of driver implementation in this article: first, automatic creation of device files is realized. You do not need to use the mknod command to automatically create device files every time you run the driver. This article uses udev (mdev) to automatically create device files. Second, the control of LED lights is not achieved by directly setting the binary bits of the relevant gpio. This article uses the operating functions of the S3C2410
the structure of the surface light source first has the following information:1. Aluminum Structureappearance structure, and the main structure of the LED heat dissipation-usually using AL6063, aluminum extrusion die, the upfront cost of low investment, the appearance of beautiful treatment, heat dissipation, the previous days to see the exhibition also found that there are manufacturers to do die-casting structure, so the IP level can do a higher poi
For example, the LED is not bright, this situation is the LED and the resistance between the wire connection is not caused by (the general components must have a wire connection, if the component is dragged directly to the back, it seems to go up, actually is disconnected)Drag the resistor and find that there is no connectionLED is normal after connectionPerhaps you will find that the
int led=7;//set LED digital IO pin, need external pull-down resistor, I use 10K
void Setup ()
{
pinmode (led,output);//Set the digital IO pin to yun out mode
}
void Loop ()
{
int i;//defines the volume
while (1)
{
i=analogread (0);//Read canceled analog 0-Port voltage if
(i>1022)//If the voltage value is greater than
Digitalwrite (
This is one of the GUG in eclipse:Bug 386171-jpa Java Change Event Handler (Waiting)Workaround:1.) Exit MyEclipse (or Eclipse);2.) Enter the installation directory of MyEclipse (or eclipse);In Linux:mkdirdisabledmkdirdisabled/featuresdisabled/pluginsmvplugins/org.eclipse.jpt.*disabled/pluginsmvfeatures/org.eclipse.jpt.*disabled/featuresIn Windows:
Create a folder named disabled;
Create two folders under the Disabled folder with names of features, plugins, respectively;
Cut the j
First, change the color every second.The jar package generated by this applet: Http://pan.baidu.com/s/1sjFj9STThe following source code:1.color.javaPackage Com.huowolf;import Java.awt.Color; Enum color{red (color.red), Orange (Color.orange), yellow (Color.yellow), Green (Color.green), Gray (Color.gray), Blue ( Color.Blue), Pink (Color.pink), Black (color.black);p rivate color c;private color (Color c) {this.c = C;} Public Color Getmycolor () {return c;}}2.ledframe.java Package Com.huowolf;imp
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.