You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
562 B

#include "system.h"
#include "pio.h"
/* Include the pacer module from the previous lab.
You must have completed this before starting this lab2-exercise. */
#include "pacer.h"
int main (void)
{
system_init ();
/* TODO: Initialise the pins of the LED matrix. */
/* Set up pacer with a frequency of 50 Hz. */
pacer_init (50);
while (1)
{
/* Pace the loop. */
pacer_wait ();
/* TODO: Drive the LED matrix using the pio functions,
displaying only three corner LEDs. */
}
}