from max7219_matrix import Max7219

display = Max7219(8,8,rotate_180=False) # width=8 height=8 LED Matrix ขนาด 8 x 8
display.brightness(5) 

heart = [
  [0,0,0,0,0,0,0,0],
  [0,1,1,0,0,1,1,0],
  [1,1,1,1,1,1,1,1],
  [1,1,1,1,1,1,1,1],
  [0,1,1,1,1,1,1,0],
  [0,0,1,1,1,1,0,0],
  [0,0,0,1,1,0,0,0],
  [0,0,0,0,0,0,0,0]
  ]

display.fill(0) # clear
for i in range(8):
  for j in range(8):
    display.pixel(j,i,heart[i][j]) # j(col) i(row)
display.show()