16 lines
262 B
C
16 lines
262 B
C
|
|
#include "mctools.h"
|
|
|
|
void ss_display(const uint8_t d[][7],uint8_t n)
|
|
{
|
|
for (uint8_t i=0; i<7; i++){
|
|
uint8_t val = d[n][i];
|
|
uint8_t port = val >> 5;
|
|
uint8_t pin = (val>>1) & 0x0F;
|
|
if (val &1)
|
|
setpin_hi(port,pin);
|
|
else
|
|
setpin_lo(port,pin);
|
|
}
|
|
}
|