...(port, pin ) MCU_IO_SET_HIGH_PREP(port, pin ) # define HAL_LED_SET_1() MCU_IO_SET...
分類:電腦與網際網路 > 程式設計 2014年02月18日
...h> #include <stdlib.h> #include <string.h> # define MAX_BUF 128 int main(void) { size_t len; FILE * pIn , *pOut; charinName[FILENAME_MAX+1], outName...
分類:電腦與網際網路 > 程式設計 2009年10月12日
... DDRB # define KEYPIN PINB # define KEY0 PB0 // capture input - digital 8 int...(ledPin, OUTPUT); // initialize the digital pin as an output: } // returns capacity on one input pin ...
分類:電腦與網際網路 > 程式設計 2012年07月12日
...用結構陣列寫的..只能輸入已知個數的資料.. #include<stdio.h> # define MAX 5 typedef struct{ char PIN [20]; //身分證 char name[20]; //姓名 int year; //西元出生年 }datatype; int main...
分類:電腦與網際網路 > 程式設計 2006年11月23日
...算不出年齡吧 @﹏@ 2006-11-21 13:15:54 補充: #include<stdio.h> # define MAX 100 typedef struct{ char PIN [20]; //身分證 char name[20]; //姓名 int year; //西元出生年 }datatype; int main() { datatype...
分類:電腦與網際網路 > 程式設計 2006年11月21日
...lcd測試程式程式碼,你要去修改程式碼以配合你的硬體(只要修改以 下# define Data P0 # define control P1 sbit RS=control^0; sbit ...
分類:電腦與網際網路 > 程式設計 2015年01月25日
...h> #include <arpa/inet.h> #include <unistd.h> # define PORT 1234 # define MAXSOCKFD 10 // 同時可服務的最大連線數目 int...
分類:電腦與網際網路 > 程式設計 2007年01月05日
... P1 # define LED2 P2 # define LED7 P3 sbit MODE = P0...2009-12-24 14:10:50 補充: 筆誤: P0.0 第 39 Pin ucLED = ~ucLED; 就只是反向輸出
分類:電腦與網際網路 > 程式設計 2009年12月25日
... busy or not MOV P1,A ;put data to LCD data pin CLR RS ; RS=0 CLR R/W ;R/...
分類:電腦與網際網路 > 程式設計 2007年11月03日