라즈베리파이2 셰익스피어 문장을 10초마다 무작위로 가져오는 Python 코드 import requests import time from bs4 import BeautifulSoup import random import RPi.GPIO as GPIO GPIO_PIN = 17 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(GPIO_PIN, GPIO.OUT) url = "https://www.opensourceshakespeare.org/views/plays/play_view.php?WorkID=othello&Scope=entire&pleasewait=1&msg=pl" try: while True: # 웹페이지에서 데이터 가져오기 (UTF-8 인코딩 설정) response = requests.get(url) response.en.. 2023. 12. 2. 라즈베리 파이 설치 https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit Operating system images – Raspberry Pi From industries large and small, to the kitchen table tinkerer, to the classroom coder, we make computing accessible and affordable for everybody. www.raspberrypi.com 기존 sd card 포맷은 cmd들어가서: diskpart diskpart 창에서 list disk 입력 sd 카드 번호 찾은 뒤에: select disk 1 (1은 예시) 여기까지 따라왔으면: clea.. 2023. 11. 29. 이전 1 다음