SM41056 0.5单联共阳数码管1-9显示 

 SM41056 0.5单联共阳数码管1-9显示

byte index=0;
const byte LEDs[10]={
  B0000001,
  B1001111,
  B0010010,
  B0000110,
  B1001100,
  B0100100,
  B0100000,
  B0001111,
  B0000000,
  B0000100
  };


void setup() {
DDRD=B11111111;

}

void loop() {
PORTD=LEDs[index];
index++;
if(index==10)
{
  index=0;
  
  }
delay(1000);
}

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-09-27
  • 2022-12-23
  • 2021-09-16
  • 2021-11-28
  • 2022-01-02
猜你喜欢
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-11-28
  • 2022-02-07
  • 2021-12-20
相关资源
相似解决方案