Keyestudio KS0436 Kit Manual page 122

Table of Contents

Advertisement

1) Connect the
Upload Code:
2) Open the program in the code folder- Circuit 9, or directly copy and
paste the code below on the Ardunio IDE.
3) Select UPLOAD to program the sketch on the UNO Board.
//define an array to store "0"
unsigned char Text[]={0x00,0x1c,0x22,0x22,0x22,0x22,0x22,0x1c};
void Draw_point(unsigned char x,unsigned char y)//draw-point
function
{
clear_();
digitalWrite(x+2, HIGH);
digitalWrite(y+10, LOW);
delay(1);
}
void show_num(void)//show function and invoke draw-point function
{
unsigned char i,j,data;
for(i=0;i<8;i++)
{
data=Text[i];
REV4
Board to a USB port on your computer.
122

Advertisement

Table of Contents
loading

Table of Contents