?? main.c
字號:
sfr P1 = 0x90; /* SFR for P1 */
sbit P1_0 = P1^0; /* SFR for P1.0 */
sbit P1_1 = P1^1; /* SFR for P1.1 */
/*------------------------------------------------
MAIN C function
------------------------------------------------*/
void main (void)
{
P1_0; /* Set P1.0 as an input */
/*--------------------------------------
Use the Toolbox buttons in the debugger
to set and clear P1.0. Open the Port1
dialog from the Peripherals Menu to view
the status of P1.1.
--------------------------------------*/
while (1)
{
P1_1 = P1_0; /* Read P1.0 & Write to P1.1 */
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -