認識二極體(以LED為例)
-
本單元程影片來源為:國立陽明交通大學12U10平臺晶創半導體G3-G9
https://12u10.lab.nycu.edu.tw/portfolio/g3-g9/
- 認識半導體元件
-
二極體的特性
電流方向由外加電壓決定 (請按下滑鼠右鍵在新分頁開啟連結)
二極體的主要功能 (請按下滑鼠右鍵在新分頁開啟連結)
-
發光二極體(LED)
亮燈
#!/usr/bin/python #+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ #|R|a|s|p|b|e|r|r|y|P|i|.|c|o|m|.|t|w| #+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ # Copyright (c) 2016, raspberrypi.com.tw # All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # led_on.py # Turn on a led # # Author : sosorry # Date : 06/22/2014 import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) LED_PIN = 12 GPIO.setup(LED_PIN, GPIO.OUT) print("LED is on") GPIO.output(LED_PIN, GPIO.HIGH) time.sleep(3) GPIO.cleanup()
本單元影片由財團法人善科教育基金會贊助,由南港高中第一屆數位科學實驗班董仁鈞同學製作。
-