- 博客(3)
- 资源 (11)
- 收藏
- 关注
转载 Android判断当前是否处于屏幕锁定状态
KeyguardManager mKeyguardManager = (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); if (mKeyguardManager.inKeyguardRestrictedInputMode()) {//keyguard is on...}
2014-09-28 19:15:44 7073
Protothreads - 非常适合单片机上使用多线程方案,纯C语言实现,没有任何依赖!
用法非常简单,直接参考如下三个示例即可,如果还有进一步需求,可以查看doc下的帮助文档
example-small.c 简单用法展示:两个线程之间互相等待的例子
example-buffer.c 经典问题:生产者、消费者问题
example-codelock.c 一个模拟用户输入密码的例子,还有定时器的用法展示
Main features:
* No machine specific code - the protothreads library is pure C
* Does not use error-prone functions such as longjmp()
* Very small RAM overhead - only two bytes per protothread
* Can be used with or without an OS
* Provides blocking wait without full multi-threading
2023-11-16
android recovery模式下可用的较大的字体
android recovery模式下可用的较大的字体,直接将此头文件放到bootable\recovery\minui目录下,修改graphics.cpp中对原字体头文件的引用为本文件即可。
2016-07-06
py2exe for python2.7 and example
py2exe for python2.7 and example, this is a person useage please do not download!
2016-04-25
windows下可用的yaffs2打包工具
windows下可用的yaffs2打包工具,并非yaffs2 image浏览器,本工具是通过命令行调用的,方便实现自动化,找了好久才找到的,值得收藏与拥有。
2013-12-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人