Page 404 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 404
</div>
<script type="text/javascript">
$(document).ready(function() {
webiopi().ready(function() {
console.log('interrupt main1');
setTimeout(function() {
webiopi().digitalWrite(5, 1);
console.log('1');
setTimeout(function() {
webiopi().digitalWrite(5, 0);
console.log('2');
setTimeout(function() {
webiopi().digitalWrite(5, 1);
console.log('3');
}, 200);
}, 200);
}, 5000); //페이지 로드 후 5초 후에 도트매트릭스에 WELCOME를 출력하는
인터럽트를 전송함(GPIO핀의 값을 0.2초 간격으로 1 > 0 > 1로 바꿈
var i = 0; //menu이동을 위한 변수선언
console.log("1"); //페이지 및 webiopi로드를 확기 위해 메시지를 콘솔에 출력
$(document).keydown(function(event) { //keydown이벤트 발생시
switch (event.which) { //event.which는 아스키코드 값
case 87: //w
{
//alert("My name is Azio Aditore"); //테스트용 메세지
clickevent(122); //F11인데 적용안됨
console.log(122); //테스트용 메세지2
break;
}
case 65: //a
{
//alert("My father and his father did");
i--;
movefocus(i); //아래에 있는 function movefocus 참조
break;
}
case 83: //s
- 397 -