代码搜索结果
找到约 634 项符合
OLED 的代码
oled.c
#include "common.h"
#define LOW_COL 0x00
#define HIGH_COL 0x12
#define CONTRAST 0x3F
#define COL_BASE 32
void delaytimeforOLED(void)
{
uchar i;
for(i=0;i
oled.h
static const prog_uchar ASCII8X16[64][16]=
{
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
{0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x0
oled.asm
;无磁上位机程序:
;功能:手动输入6个点的标定流量,输入范围:0~599升;
; 开始键和结束键在水的流速平稳时使用,
;;键盘定义:
;数字键:0--9,小数点键;
;功能键:开始键、结束键、修改键、发送键、NEXT键
$include (c8051f120.inc)
;****************************************
;*****
oled.h
extern void wr_command1(uint8 com);
extern void wr_data1(uint8 data);
extern void wr_command2(uint8 com);
extern void wr_data2(uint8 data);
extern void rst_oled();
extern void display
oled.c
#include "Board.h"
int FrontColor[4];
int BackColor[4];
void InitOLEDIO()
{
ShutDownOLED17V();
AT91C_BASE_PIOB->PIO_PPUDR=PIN_OLEDCS+PIN_OLEDWR+PIN_OLEDRESET+PIN_OLEDDC+PIN_OLEDRD+0xff+0x1f0
oled.asm
CS EQU P2.7
RES EQU P1.7
DISB EQU P1.5
D_C EQU P2.1
WR EQU P3.6
oled.c
#include
#include "oled.h"
#include "oled_cmd.h"
#include "oled_interface.h"
#include "font.h"
// VRAM needed for SPI interface because there is no way to read
// the data
oled.h
#define SPI
void oled_init(void);
void oled_clear(void);
void oled_draw_row(char, unsigned char *);
void oled_off(void);
void oled_on(void);
void oled_reset(void);
void oled_refresh(void);
void pu