질문게시판 > re: 아두이노 코딩 질문

TODAY456 TOTAL786,564
사이트 이용안내
Login▼/회원가입
최신글보기 질문게시판 기술자료 동영상강좌

아두이노 센서 ATMEGA128 PWM LED 초음파 AVR 블루투스 LCD UART 모터 적외선


BASIC4MCU | 질문게시판 | re: 아두이노 코딩 질문

페이지 정보

작성자 ungung2 작성일2018-10-27 22:13 조회948회 댓글0건

본문

	

2013781b29e21600f9f5a1bee3dfb707_1540645388_2244.jpg
2013781b29e21600f9f5a1bee3dfb707_1540645388_3047.jpg
2013781b29e21600f9f5a1bee3dfb707_1540645388_3841.jpg
 1)우선 방금 올려주신 코드처럼 ledout부분을 수정하면 첫번째 처럼 모든 사다리에 불이 들어와 버립니다. 2,3 번째 사진 처럼 제가 생각한 경우의 수처럼 몇개만 들어와야 하는데요..

2) 제가 한 대로 사다리 led가 점등된 이후도 문제입니다. 조건문 부분에 = 를 ==로 수정하라고 하셨는데 그럼 2번째 처럼 그냥 else로 넘어가버립니다.

3) 이게 맨처음 질문입니다. 조건식이 잘못된건지 high를 읽지 못하는건지 (읽지 못하면 처음에도 사다리를 안탔을텐데 ...) . 4개 라인 다해야하는데 이틀 동안 첫 라인도 못하고 있습니다..도와주세요..

 

 

----------------------------------------------------------------------------------------------------------------------------

여태 껏 썼던 코드 첨부합니다.(주석도포함)

 

int a,b;

int ledPins[]={36,37,38,39,40,41,42,43,44,45,46,47};

/*int number[14][12] = {

  {1,1,0,1,0,0,1,0,1,1,0,1},//case 0

  {1,1,0,0,0,0,1,1,1,1,0,0},//1

  {1,1,0,1,0,0,0,1,1,1,1,0},//2

  {0,0,1,0,1,1,0,1,0,0,1,0},//3

  {0,1,0,0,1,0,1,1,0,1,0,0},//4

  {1,0,0,0,0,1,1,1,1,0,0,0},//5

  {1,0,1,1,0,1,0,0,1,0,1,1},//6

  {1,0,1,0,0,1,0,1,1,0,1,0},//7

  {1,0,0,1,0,1,1,0,1,0,0,1},//8

  {0,1,1,0,1,0,0,1,0,1,1,0},//9

  {0,0,1,1,1,1,0,0,0,0,1,1},//10

  {0,1,1,1,1,0,0,0,0,1,1,1},//11

  {0,0,0,1,1,1,1,0,0,0,0,1},//12

  {0,1,0,1,1,0,1,0,0,1,0,1}//13

};

int randnumber;*/

 

void RandomLED(){      //(랜덤으로 사다리 설정)

  int rand=random(14); //0~13 난수

  if(rand==0){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

    

  }

  else if(rand==1){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],LOW);

    

  }

  else if(rand==2){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==3){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

 

  }

  else if(rand==4){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==5){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==6){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],HIGH);

  }

  else if(rand==7){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

    

  }

  else if(rand==8){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

  }

 else if(rand==9){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==10){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],HIGH);

  }

  else if(rand==11){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],HIGH);

  }

  else if(rand==12){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

  }

  else {

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

 

  }

}

 

void RandomLEDOFF(){

   digitalWrite(36,LOW);

 digitalWrite(37,LOW);

 digitalWrite(38,LOW);

 digitalWrite(39,LOW);

 digitalWrite(40,LOW); 

digitalWrite(41,LOW);

digitalWrite(42,LOW);

digitalWrite(43,LOW);

digitalWrite(44,LOW);

digitalWrite(45,LOW);

digitalWrite(46,LOW);

digitalWrite(47,LOW);

}

void flowLEDON(){

  for(int i=0;i<9;i++) {

  digitalWrite(i,HIGH);

  digitalWrite(i+9,HIGH);

  digitalWrite(i+18,HIGH);

  digitalWrite(i+27,HIGH);

  delay(200);

 

 }

}

void clearled(){

  for(int i=0;i<9;i++) {

  digitalWrite(i,LOW);

  digitalWrite(i+9,LOW);

  digitalWrite(i+18,LOW);

  digitalWrite(i+27,LOW);

 

 }

}

 

void flowLine1(int a,int b){

  for(int i=a;i<=b;i++) {

  digitalWrite(i,HIGH);

  delay(200);

 }

}

 

 

void flowLine2(int a,int b){

  for(int i=a;i<=b;i++) {

  digitalWrite(i,HIGH);

  delay(200);

 

 }

}

void flowLine3(int a,int b){

  for(int i=a;i<=b;i++) {

  digitalWrite(i,HIGH);

  delay(200);

 

 }

}

void flowLine4(int a,int b){

  for(int i=a;i<=b;i++) {

  digitalWrite(i,HIGH);

  delay(200);

 

 }

}

 

void button1(){

  //button 누르면

  flowLine1(0,1);

  if(ledPins[0]=1)

  {

    //flowLineStop1(1);

    //flowLineNew2(10);

    flowLine2(10,12);

   if(ledPins[1]=1)

    {

      flowLine1(3,5);

      delay(300);

      if(ledPins[2]=0)

        {flowLine1(6,7);     

          if(ledPins[3]=1)

          {

            flowLine1(7,8);

          }

          else

          {flowLine2(16,17);} }

      if(ledPins[2]=1)

      {flowLine2(14,16);

        

    }//else

    

    }//1-high

    if(ledPins[1]=0)

    { 

    flowLine2(13,14);

     if(ledPins[5]=1)

    {flowLine3(21,23);}

   

    }

   

   }//ledpins[0]=high

 else

 flowLine1(2,3);

 /*if(rand==0){

 flowLine1(0,1);

 delay(1000);

 flowLine2(10,12);

 flowLine1(3,7);

 flowLine2(16,17);

 }*/

  

    

   

}

void setup() {

  // initialize digital pin 13 as an output.

  for(int i=0;i<36;i++) {

    pinMode(i,OUTPUT);

  }//36개 라인 핀

 for(int i=0; i<12; i++){

  pinMode(ledPins[i],OUTPUT);

}//사다리 12개 핀

 

 flowLEDON();

 for(int i=0;i<9;i++) {

  digitalWrite(i,LOW);

  digitalWrite(i+9,LOW);

  digitalWrite(i+18,LOW);

  digitalWrite(i+27,LOW);

 

 }

 clearled();

 

 randomSeed(analogRead(A0));

 delay(500);

  RandomLED();

 delay(1000);

  button1();

 

}//setup

 

 

// the loop fun ction runs over and over again forever

void loop() {

 

 

  

 

}

 

/*if(rand==0){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

    

  }

  else if(rand==1){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],LOW);

    

  }

  else if(rand==2){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==3){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

 

  }

  else if(rand==4){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==5){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==6){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],HIGH);

  }

  else if(rand==7){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

    

  }

  else if(rand==8){

    digitalWrite(ledPins[0],HIGH);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],LOW);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],HIGH);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

  }

 else if(rand==9){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],LOW);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],HIGH);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],LOW);

  }

  else if(rand==10){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],HIGH);

  }

  else if(rand==11){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],HIGH);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],LOW);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],HIGH);

    digitalWrite(ledPins[11],HIGH);

  }

  else if(rand==12){

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],LOW);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],HIGH);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],LOW);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

  }

  else {

    digitalWrite(ledPins[0],LOW);

    digitalWrite(ledPins[1],HIGH);

    digitalWrite(ledPins[2],LOW);

    digitalWrite(ledPins[3],HIGH);

    digitalWrite(ledPins[4],HIGH);

    digitalWrite(ledPins[5],LOW);

    digitalWrite(ledPins[6],HIGH);

    digitalWrite(ledPins[7],LOW);

    digitalWrite(ledPins[8],LOW);

    digitalWrite(ledPins[9],HIGH);

    digitalWrite(ledPins[10],LOW);

    digitalWrite(ledPins[11],HIGH);

 

  }

  

  

  */

 

  /*void flowLineStop1(int i){

  for(i;i<9;i++) {

  digitalWrite(i+1,LOW);

 // delay(200);

 

 }

}

 void flowLineStop2(int i){

  for(i;i<18;i++) {

  digitalWrite(i+1,LOW);

 //delay(200);

 }

 }

 void flowLineStop3(int i){

  for(i;i<27;i++) {

  digitalWrite(i+1,LOW);

 //delay(200);

 }

 }

 void flowLineStop4(int i){

  for(i;i<36;i++) {

  digitalWrite(i+1,LOW);

 //delay(200);

 }

 }

 void flowLineNew1(int i){

  for(i;i<9;i++) {

  digitalWrite(i,HIGH);

 delay(200);

 }

 }

 void flowLineNew2(int i){

  for(i;i<18;i++) {

  digitalWrite(i,HIGH);

 delay(200);

 }

 }

 void flowLineNew3(int i){

  for(i;i<27;i++) {

  digitalWrite(i,HIGH);

 delay(200);

 }

 }

 void flowLineNew4(int i){

  for(i;i<36;i++) {

  digitalWrite(i,HIGH);

 delay(200);

 

 randnumber = random(14);

 for(int i=0; i<12; i++){

  digitalWrite(ledPins[i],number[randnumber][i]);

 }

delay(1000);

 }*/

  • BASIC4MCU 작성글 SNS에 공유하기
  • 페이스북으로 보내기
  • 트위터로 보내기
  • 구글플러스로 보내기

댓글 0

조회수 948

등록된 댓글이 없습니다.

질문게시판HOME > 질문게시판 목록

MCU, AVR, 아두이노 등 전자공학에 관련된 질문을 무료회원가입 후 작성해주시면 전문가가 답변해드립니다.
ATMEGA128PWMLED초음파
아두이노AVR블루투스LCD
UART모터적외선ATMEGA
전체 스위치 센서
질문게시판 목록
제목 작성자 작성일 조회
공지 MCU, AVR, 아두이노 등 전자공학에 관련된 질문은 질문게시판에서만 작성 가능합니다. 스태프 19-01-15 974
공지 사이트 이용 안내댓글[10] master 17-10-29 8924
공지 [무료 공개] 소스코드 하이라이트 v2.0 beta [2013.02.07]댓글[1] 이미지첨부파일 master 18-01-23 3366
질문 Atmega128로 3-phase BLDC MOTOR 구동 질문! 이미지새글첨부파일 조셉 19-12-06 10
답변 답변글 답변 : Atmega128로 3-phase BLDC MOTOR 구동 질문!댓글[1] 새글 master 19-12-06 11
질문 세그먼트 숫자가 같을시 LED 깜박거리기댓글[1] 새글 홍구 19-12-06 10
질문 MP3 모듈 질문있습니다.댓글[1] 새글 초짜 19-12-06 6
질문 코딩 질문이요댓글[1] 새글 호롷홀 19-12-06 9
질문 엔코더 회전 시간 추가 질문댓글[2] 새글 starmachin 19-12-06 11
질문 atmega128 배열이동 질문있어요!댓글[1] 새글 마이크로 19-12-06 11
질문 sx1276 로라모듈댓글[1] 새글 엘도라도 19-12-06 9
질문 소스코드 합치는 방법좀 알려주세요 ...댓글[1] 새글첨부파일 구슬박은놈 19-12-06 10
질문 가변저항옴값질문입니다 새글 현이꽃 19-12-06 7
답변 답변글 답변 : 가변저항옴값질문입니다 이미지새글 master 19-12-06 5
질문 라인트레이서 + 초음파 새글 호롷홀 19-12-05 11
답변 답변글 답변 : 라인트레이서 + 초음파 새글 master 19-12-06 11
질문 코딩관련 질문이요ㅠㅠㅠㅠ댓글[2] 이미지새글 rkdeh 19-12-05 15
질문 아두이노 MsTimer2 새글 구퓨리 19-12-05 10
답변 답변글 답변 : 아두이노 MsTimer2댓글[1] 새글 master 19-12-05 9
질문 코드 해석 부탁드립니다댓글[1] 새글 asdqwd 19-12-05 8
질문 아두이노 심박수 측정 코드 해석 부탁드립니다댓글[3] 새글 asdqwd 19-12-05 18
질문 아두이노 오류입니다 도와주세요 ㅠㅠ댓글[1] 이미지새글 구슬박은놈 19-12-05 11
질문 동일 센서 연결 질문 드립니다.댓글[1] 새글 정다나 19-12-05 10
질문 atmega128 FND 질문 새글 studio4 19-12-05 24
답변 답변글 답변 : atmega128 FND 질문 새글 master 19-12-05 15
질문 자동차 냉각회로 질문있습니다.댓글[3] 이미지 rhdwkr00 19-12-04 16
질문 코딩관련 질문드립니다.댓글[3] rkdeh 19-12-04 26
질문 av128 외부인터럽트 질문댓글[1] 핑구맹구 19-12-04 22
답변 답변글 답변 : av128 외부인터럽트 질문 master 19-12-04 12
질문 적외선 센서 사용 질문입니다.. 돼지11 19-12-04 12
게시물 검색

2019년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2018년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
Privacy Policy
MCU BASIC ⓒ 2019
모바일버전으로보기