Recent Posts
printf("ho_tari\n");
03_Analog_Write 본문
const int LED[6] = {3, 5, 6, 9, 10, 11};
void setup() {
// put your setup code here, to run once:
//analogWrite(LED, 225);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i = 0; i < 6; i++)
{
for(int j = 0; j < 256; j++)
{
analogWrite(LED[i], j);
delay(5);
}
for(int k = 255; k >= 0; k--)
{
analogWrite(LED[i], k);
delay(5);
}
analogWrite(LED[i], 0);
}
}
'Arduino' 카테고리의 다른 글
06_Switch_Input_Interrupt (0) | 2023.09.02 |
---|---|
05_Switch_Input (0) | 2023.09.02 |
04_Serial_Read (0) | 2023.09.02 |
02_LED_ON_OFF (0) | 2023.09.02 |
01_Serial_print (0) | 2023.09.02 |