나의 노력(42)
-
스텝 모터
#include const int stepsPerRevolution = 200; Stepper myStepper(stepsPerRevolution, 11, 9, 10, 8); void setup() { myStepper.setSpeed(60); } void loop() { myStepper.step(stepsPerRevolution); delay(500); myStepper.step(-stepsPerRevolution); delay(500); }
2019.09.19 -
LCD 에 이름 띄우기
#include #include // (I2C 주소, 칸 수(X), 줄 수(Y)) LiquidCrystal_I2C lcd(0x27, 16, 2); void setup() { lcd.init(); lcd.backlight(); lcd.clear(); lcd.print("My Name Is"); lcd.setCursor(5,1); lcd.print("JangHyeYun"); delay(1000); lcd.clear(); lcd.print("My Name Is"); lcd.setCursor(5,1); lcd.print("Haley"); delay(1000); lcd.clear(); lcd.print("My Name Is"); lcd.setCursor(5,1); lcd.print("HIHIHI"); delay(..
2019.09.19 -
영어 끝말잇기 - Python
나의 해결법 -> 첫 번째 반복문은 마지막 글자와 다음단어의 첫글자가 같은지 확인하는 반복문이고 두 번째 반복문은 전에 같은 단어를 말한 적이 있는지 확인하는 반복문입니다. 두 반복문은 for문을 돌릴 범위가 달라서 따로 작성하게 되었습니다.
2019.09.17 -
DATETIME에서 DATE로 형 변환 - MySQL
나의 해결법 ->
2019.09.17 -
제일 작은 수 제거하기 - Python
나의 해결법 ->
2019.09.16 -
자연수 뒤집어 배열로 만들기 - Python
나의 해결법 ->
2019.09.16