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
#include <Servo.h> //서보모터 라이브러리를 불러옵니다. | |
#include <Adafruit_NeoPixel.h> //네오픽셀 라이브러리를 불러옵니다. | |
#include <SoftwareSerial.h> | |
#include <DFPlayer_Mini_Mp3.h> | |
int motionPin = 7; // 인체감지센서를 7번핀으로 설정합니다. | |
int motionState = LOW; | |
int trigPin = 2; | |
int echoPin = 3; | |
int pixelPin1 = 13; |
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
#include <Adafruit_NeoPixel.h> | |
#define BUTTON_PIN 2 | |
#define PIXEL_PIN 5 // Digital IO pin connected to the NeoPixels. | |
#define PIXEL_COUNT 8 // Number of NeoPixels | |
Adafruit_NeoPixel strip(PIXEL_COUNT, PIXEL_PIN, NEO_GRB + NEO_KHZ800); | |
//Adafruit_NeoPixel strip(PIXEL_COUNT, PIXEL_PIN, NEO_GRBW + NEO_KHZ800); | |
volatile unsigned btnPrevious = 0; | |
const unsigned int btnInterval = 500; |
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
#include <Servo.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIXEL_PIN 4 | |
#define PIXEL_COUNT 3 // 네오픽셀 수 | |
int trigPin = 2; //초음파 트리거 핀 | |
int echoPin = 3; //초음파 에코 핀 | |
int infraredPin = 3; |
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
#include "pitches.h" //include zip library | |
#include "MsTimer2.h" | |
#include <Servo.h> | |
int LED = 13; // LED | |
int PIEZO = 8; //부저 | |
int MOTION = 7; //모션 센서 | |
int trigPin = 2; //초음파 트리거 핀 | |
int echoPin = 3; //초음파 에코 핀 | |
Servo myservo; | |
boolean isOpen = false; |
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
#위코드와 아래 코드 어느것을 참고해도 괜찮습니다. | |
#윗코드는 실습시간에 했던 코드, 아래 코드는 미리 했던 코드 | |
import random | |
from collections import deque | |
def is_customer_arrived(): | |
if(random.randint(0,100)> 30): | |
return True | |
else: | |
return False |
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 collections import deque | |
import random | |
def customer_in(clock): | |
global customer | |
customer += 1 | |
print('고객',customer,'님이', clock, '분 에 들어왔습니다.') | |
service_time=random.randint(2, 5) | |
print('서비스시간은',service_time, '분이 예상됩니다.\n') | |
cus = {customer:[clock, service_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
s = input('수식을 입력해주세요:') #{A[(i+1)]=0} | |
s = list(s) | |
print(s) | |
stack = [] | |
for i in s: | |
if i=="{" or i=="[" or i =="(": | |
stack.append(i) | |
elif i=="}" or i=="]" or i== ")": | |
if len(stack): |
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
#!/bin/bash | |
# Amazon_Linux kimsQ Rb2 전용서버 구성 쉘스크립트 | |
# ------------------------------------------------------------------------- | |
# See url for more info: | |
# https://kimsq.com/docs/c/start/install/59/60 | |
# APM 설치 | |
yum update -y | |
yum install -y httpd24 php73 mysql57-server php73-mysqlnd | |
service httpd start |
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
<?xml version="1.0" encoding="utf-8"?> | |
<DATA> | |
<title>KIMSQ_RB_BBS</title> | |
<item> | |
<display>1</display> | |
<hidden>0</hidden> | |
<name>admin</name> | |
<nic>admin</nic> | |
<id>admin</id> | |
<pw>1</pw> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<DATA> | |
<title>KIMSQ_RB_MEMBER</title> | |
<!-- 회원정보 --> | |
<item> | |
<id>admin</id> | |
<auth>1</auth> | |
<sosok>1</sosok> | |
<level>1</level> | |
<grade></grade> |
NewerOlder