cereb.h

来自「a zipped example of communication betwee」· C头文件 代码 · 共 22 行

H
22
字号
// Declarations file for Cerebellum Programming Software 

#define SER_9600 129
#define SER_19200 64
#define SER_38400 31
#define SER_57600 21
#define SER_115200 10
#define CREN 4
#define GIE 7
#define TMR2ON 2
/// #define T0IE 5
//  #define T0IF 2


#pragma CLOCK_FREQ 20000000 // correct clock for timing on cerebellum

// Cerebellum LEDs and buttons //
#define GREEN 5  // this is on port b, pin 5
#define YELLOW 4 // this is on port b, pin 4
#define BTN1 2   // on port b-pin 2 button further from LEDs
#define BTN2 4   // on port b-pin 4 button closer to LEDs

⌨️ 快捷键说明

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