資源簡介
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
評論
共有 條評論