?? main.c
字號:
#include <stdio.h>#include <htc.h>/* A simple demonstration of serial communications which * uses the bit-banging implementation of a serial communications. * Useful for PIC16Cxxx series of devices, or if USART is already * in use. */void main(void){ unsigned char input; INTCON=0; // purpose of disabling the interrupts. printf("\rPress a key and I will echo it back:\n"); while(1){ input = getch(); // read a response from the user printf("\rI detected [%c]",input); // echo it back }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -