Forum Discussion
Altera_Forum
Honored Contributor
15 years agoJust like you use the IOWR_ALTERA_AVALON_PIO_DATA(base, data) macro to turn on or off the LEDs, you can use the IORD_ALTERA_AVALON_PIO_DATA(base) macro on your buttons PIO to read the buttons state.