51åçæºIOå£è¾åº
é«çµå¹³æ¶ï¼æ¥è¿VCCï¼å¯ä»¥æVCCæ¥è®¡ç®ã
ä½ ä½¿ç¨5Vä¾çµï¼IOè¾åºé«çµåå¹³åºè¯¥æ5V计ç®ã
LEDéæµçµé»ï¼ ( 5V - ledå·¥ä½æ¶ç«¯çµå ) / ledå·¥ä½çµæµ
LEDçµåä¸è¬ 2å°3Vï¼æå¹³å2.5Vï¼å·¥ä½çµæµæ10ma
éæµçµé»ï¼ (5-2.5)V/10ma = 0.25k = 250欧ï¼ä¸è¬é200ï¼1000欧é½å¯ä»¥