cerebv41.h

来自「example of communication between the Cer」· C头文件 代码 · 共 26 行

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

/* Version Information:

	This is version 4 for the second version of Cerebellum.

	the location of Button 1 changed, as did the motor direction bit.

*/



#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 4  // this is on port b, pin 4

#define YELLOW 5 // this is on port b, pin 5

#define BTN1 1   // on port b-first pin (B0 I think);  button further from LEDs

#define BTN2 4   // on port b-fourth pin (B3 I think);  button closer to LEDs

⌨️ 快捷键说明

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