一、自动弹出软键盘Timertimer=newTimer();timer.schedule(newTimerTask(){publicvoidrun(){InputMethodManagerinputMethodManager=(InputMethodManager)getSystemService...
分类:
移动开发 时间:
2014-05-27 00:07:18
阅读次数:
434
前提: 开始用的是 cc2530 timer
1来做PWM的,已经可调占空比了,但是由于硬件的改动,需要用timer 3 和 timer 4
代替。由于调试过程中出了些小问题,于是自己把这个贴出来。关键点注释出来。说说 硬件吧: timer 1 P1_0 口timer 3 P1_6 P1_7...
分类:
其他好文 时间:
2014-05-27 00:03:43
阅读次数:
612
【Creating a Timer】 Even if you specify a leeway
value of 0, you should never expect a timer to fire at the exact nanosecond you
requested. The system....
分类:
其他好文 时间:
2014-05-26 16:21:39
阅读次数:
338
NSTimer是不一定准时的,是有可能被delay的,每次间隔的时间是不一定一样的。A
repeating timer reschedules itself automatically based on the scheduled firing
time, not the actual firing...
分类:
其他好文 时间:
2014-05-26 10:03:30
阅读次数:
230
一、定时器在cocos2d-x中,
类似定时器的操作,不需要额外的写Timer,实际上,在Node元素中,已经添加了定时执行的功能;先来看看在Node中的定义// ...bool
Node::isScheduled(SEL_SCHEDULE selector){ return _schedul...
分类:
其他好文 时间:
2014-05-25 19:42:54
阅读次数:
290
4个任务
/*
使用keil4
可运行8个任务
任务从rtos_wait()处切换,在定时时间到后从定时中断中切换回来。
*/
#include "STC12C5A.H"
#define TIMER_RELOAD() {TL0=0x00;TH0=0xC4;}//使能T/C 初始10ms
#define MAX_TASKS 8 //任务槽最大个数.
unsig...
分类:
编程语言 时间:
2014-05-25 02:03:17
阅读次数:
293
一、入门篇
Java RMI指的是远程方法调用(Remote Method Invocation). 它是一种机制, 能够让不同操作系统之间程序实现方法调用.
比如: 一个EJB可以通过RMI调用web上另一台机器上的EJB远程方法(EJB底层就是使用RMI).
二、RMI和webservice
RMI是在TCP协议上传递可序列化的Java对象, 只能...
分类:
编程语言 时间:
2014-05-25 00:33:36
阅读次数:
340
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class TraditionalTimerTest {
static int count;
public static void main(String[] args) {
class MyTimerTask exte...
分类:
其他好文 时间:
2014-05-23 01:45:11
阅读次数:
226
#include "STC12C5A.H"
#define TIMER_RELOAD() {TL0=0x00;TH0=0xC4;}//使能T/C
初始10ms
#define MAX_TASKS 2 //任务槽最大个数.
unsigned char idata task_stack[MAX_TASKS][2];//任务堆栈. PC指针为16位,需2个字节task_st...
分类:
编程语言 时间:
2014-05-23 00:03:19
阅读次数:
341
#include "STC12C5A.H"
#define TIMER_RELOAD() {TL0=0x00;TH0=0xC4;}//使能T/C
初始10ms
#define MAX_TASKS 8 //任务槽最大个数.
unsigned char idata task_stack[MAX_TASKS][2];//任务堆栈. PC指针为16位,需2个字节。
unsi...
分类:
编程语言 时间:
2014-05-21 08:12:12
阅读次数:
285