资源简介
seled316s例程,低价位的显示芯片
代码片段和文件信息
//#include /* STM32F10x Library Definitions stm32库定义 */
#include “reg51.h“
#include
#include
#include
#include “STLED316S.h“
//const u8 SegCommonA[] = { 0xc00xf90xa40xb00x990x920x820xf80x800x90 };
#define SWAP16( x ) ( ((x&1)<<7) | ((x&2)<<5) | ((x&4)<<3) | ((x&8)<<1) | ((x&16)>>1) | ((x&32)>>3) | ((x&64)>>5) | ((x&128)>>7) )
//按位与运算颠倒8位字符顺序
// 0 1 2 3 4 5 6 7 8 9
const u8 SegCommonA[] = { 0x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x00
0x000x000x000x000x000x000x000x00
0x0
评论
共有 条评论