it seems to me (digitalWrite(pinTable[x],x);) slow to repeat simulation of a code with a frequency of 3 megahertz
does not have time to display information from cells with a frequency of up to 3 megahertz
Code: Select all
byte pinTable[] = {0,1,2,3,4,5,6,7};
void setup() {
for(int i=0;i<8;i++)
{
pinMode(pinTable[i],OUTPUT);
}
}
void loop()
{
byte a[] = {1,0,1,0,1,0,1,0,1,0,1,0,1,0};
byte b[] = {1,0,1,0,1,0,1,0,1,0,1,0,1,0};
byte c[] = {1,0,1,0,1,0,1,0,1,0,1,0,1,0};
byte d[] = {1,0,1,0,1,0,1,0,1,0,1,0,1,0};
byte e[] = {1,0,1,0,1,0,1,0,1,0,1,0,1,0};
byte f[] = {1,0,1,0,1,0,1,0,1,0,1,0,1,0};
byte g[] = {1,0,1,0,1,0,1,0,1,0,1,0,1,0};
for(int i=0;i<14;i++)
{
if (a[i]==1)
{
digitalWrite(pinTable[0],1);
}
else
{
digitalWrite(pinTable[0],0);
}
///////////////////////////////////////////////
if (a[i]==1)
{
digitalWrite(pinTable[1],1);
}
else
{
digitalWrite(pinTable[1],0);
}
///////////////////////////////////////////////
if (a[i]==1)
{
digitalWrite(pinTable[2],1);
}
else
{
digitalWrite(pinTable[2],0);
}
/