<style. type="text/css">body{margin:0px auto; padding:0px;}ul,li{margin:0px; padding:0px;list-style.:none;}.sqBorder {width:122px; height:182px; paddi
分类:
Web程序 时间:
2016-01-30 02:20:22
阅读次数:
307
#include #include#include #include static int fb;int main(){ int i=0; printf("hello world !\n"); fb = open("/dev/led", O_RDWR);//打开设备 if (fb < 0) ...
分类:
其他好文 时间:
2016-01-15 23:10:58
阅读次数:
175
iOS中实现LED跑马灯效果实现原理是使用scrollView, 将需要滚动的label添加两次到 scrollView的subView下面, 然后通过滚动scrollView来实现跑马灯效果。具体实现代码如下://// KMScrollLabel.swift// StopSmokingProg.....
分类:
移动开发 时间:
2016-01-13 19:08:16
阅读次数:
643
1 2 3 4 5 抽奖游戏 6 39 80 81 82 83 184 285 386 487 88 589 690 791 892 93 94
分类:
编程语言 时间:
2016-01-09 16:35:25
阅读次数:
179
电路图:目的:K1 开始跑马灯 左->右K2 停止K3 跑马灯 右-> 左K4 流水灯参考程序:#include#include#define uchar8 unsigned char #define uint16 unsigned int #define LED P1 sbit k...
分类:
其他好文 时间:
2015-12-23 17:44:38
阅读次数:
265
自定义View在开发中是经常遇到的,例如一个跑马灯的效果、或者自定义一个转盘来显示下载进度的百分百比。今天把实现方式写下来,下面是源码部分:MainActivity:没变动importandroid.app.Activity;
importandroid.os.Bundle;
publicclassMainActivityextendsActivity{
@Overr..
分类:
移动开发 时间:
2015-12-18 14:51:41
阅读次数:
235
第一种方法(很普遍,很简单的在xml布局文件中设置TextView的属性):重要代码: //设置为跑马灯显示 android:ellipsize="marquee" //获取焦点 android:focusable="true" //可以通过toucth来获得focus android:foc...
分类:
移动开发 时间:
2015-12-10 18:36:50
阅读次数:
167
在eclipse中常用的快捷键Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Q 定位到最后编辑的地方Ctrl+O 快速显示 OutLineCtrl+T 快速显示当前类的继承结构Ctrl+K 参照选中的Word快速定位到下一个Ctrl+Shift+K 参照选中的Word快速定位...
分类:
其他好文 时间:
2015-12-04 20:42:34
阅读次数:
179