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.
KED/ked/device_drivers/max7219/max7219.c

23 lines
298 B

#include "max7219.h"
void max7219_init(
max7219_t *display,
spi_ch_t *spi_ch)
{
display->spiCH = spi_ch;
}
void max7219_testDisplay(
max7219_t *display,
uint8_t logic)
{
if(logic) {
spiWriteReg(display->spiCH, 0x0F, 0x01);
} else {
spiWriteReg(display->spiCH, 0x0F, 0x00);
}
}