clockface.h

来自「WWVB receiver using AVR.」· C头文件 代码 · 共 25 行

H
25
字号
/* $Id: clockface.h,v 1.4 2005/05/04 17:04:20 simimeie Exp $ * Functions for controlling the "clock face", which consists of 60 LEDs * (12 big, 48 smaller) that are controlled by a MAX 7219 and show the * seconds like an analog clock. */#ifndef _CLOCKFACE_H_ #define _CLOCKFACE_H_#ifdef CLOCKFACEMODULEextern uint8_t clockface_brightness;void clockface_init(void);void clockface_update(uint8_t mode, uint8_t seconds);void sendmax7219command(uint8_t address, uint8_t data);#else /* ndef CLOCKFACEMODULE */#define clockface_init() if (0) { }#define clockface_update(x) if (0) { }#endif /* CLOCKFACEMODULE */#endif /* _CLOCKFACE_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?