This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_flags = | |
-D ARDUINO_USB_MODE=1 | |
-D ARDUINO_USB_CDC_ON_BOOT=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(A0,INPUT);#A0ピンを入力に設定 | |
Serial.begin(9600);#シリアル通信開始 | |
} | |
void loop() { | |
Serial.println( analogRead( A0 ) ); #読み取った電圧をシリアルモニタに表示 | |
delay(100); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ログイン画面にて、ログインIDとパスワードを入力する | |
login_ID = driver.find_element(By.NAME, "name") #ページ上の要素の取得 | |
login_ID.send_keys('ここにログインIDを入力')#ログインID送信 | |
login_ID = driver.find_element(By.NAME,'password') #ページ上の要素の取得 | |
login_ID.send_keys('ここにパスワードを入力')#パスワード送信 | |
#送信ボタンを押す | |
login_button = driver.find_element(By.ID,'login-button') #ページ上の要素の取得 | |
login_button.click() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#必要なライブラリ類のインポート | |
from selenium import webdriver #selenium関連のライブラリーは、pythonからブラウザを操作するために使用します。 | |
from selenium.webdriver.chrome.service import Service | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.action_chains import ActionChains | |
import pyautogui #pythonからマウスカーソルを操作するために使用します。 | |
import time | |
# chromedriver.exeがダウンロードされた場所を指定します。 | |
#今回の例では /usr/bin/chromedriver という場所にchromedriver.exeがダウンロードされています。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ver1.0 はてなブログにアクセスし、直近31日間のアクセス数を取得 | |
#必要なライブラリ類のインポート | |
from selenium import webdriver #selenium関連のライブラリーは、pythonからブラウザを操作するために使用します。 | |
from selenium.webdriver.chrome.service import Service | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.action_chains import ActionChains | |
import pyautogui #pythonからマウスカーソルを操作するために使用します。 | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); // シリアル通信の開始 | |
pinMode(13,OUTPUT); | |
delay(1000); | |
Serial.println("testと入力してください"); | |
} | |
void loop() { | |
digitalWrite(13,HIGH); | |
Serial.println("loop関数の最初"); | |
String message = ""; |