#include <stdio.h>
struct PinDigital {
int numero;
int estado;
};
int main() {
struct PinDigital pines[4];
for (int i = 0; i < 4; i++) {
pines[i].numero = 10 + i;
pines[i].estado = 0;
}
for (int i = 0; i < 4; i++) {
printf("Pin %d: %d\n",
pines[i].numero, pines[i].estado);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: