![Handson Technology MAX7218 User Manual Download Page 7](http://html1.mh-extra.com/html/handson-technology/max7218/max7218_user-manual_3555917007.webp)
7
www.handsontec.com
}
// Display=the extracted characters with scrolling
void
printCharWithShift
(
char
c
,
int
shift_speed
)
{
if
(
c
<
32
)
return
;
c
-=
32
;
memcpy_P
(
buffer
,
CH
+
7
*
c
,
7
);
m
.
writeSprite
(
32
,
0
,
buffer
);
m
.
setColumn
(
32
+
buffer
[
0
],
0
);
for
(
int
i
=
0
;
i
<
buffer
[
0
]
+
1
;
i
++)
{
delay
(
shift_speed
);
m
.
shiftLeft
(
false
,
false
);
}
}
// Extract the characters from the text string
void
printStringWithShift
(
char
*
s
,
int
shift_speed
)
{
while
(*
s
!=
0
)
{
printCharWithShift
(*
s
,
shift_speed
);
s
++;
}
}
Once successfully upload, a message will be scrolled across the modules.