#include "max7219_vcd_values.h"

void setup() {
  Serial1.begin(115200);
  Serial1.println("Hello, SiLife!");
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
  for (int i = 0; i < sizeof(vcd_pin_data) / sizeof(vcd_pin_data[0]); i += 2) {
    // delayMicroseconds(vcd_pin_data[i]);
    digitalWrite(10, (vcd_pin_data[i+1] & PIN_SPI_CS) ? HIGH : LOW);
    digitalWrite(12, (vcd_pin_data[i+1] & PIN_SPI_MOSI) ? HIGH : LOW);
    digitalWrite(11, (vcd_pin_data[i+1] & PIN_SPI_SCK) ? HIGH : LOW);
  }
}

void loop() {
  delay(1); // this speeds up the simulation
}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT