In the year 1612, the famous samurai Miyamoto Musashi fought against Sasaki Kojirō, in the famous duel of Funa-jima.
Miyamoto killed his opponent who, shortly before his death, gave Miyamoto a strange piece of paper.
Sasaki said to Miyamoto that he had received it years earlier from a strange old treasure hunter; the hunter confessed that he had buried all the treasures he'd found in his long life, but it would not be easy to find them. Sasaki also said that he'd never understood the meaning of the paper.
Miyamoto died many years later, but the message still remains a secret to this day.
Where the treasures are buried?
Hint 1 :
Try to resolve before the first two horizontal rows; after 'rotate' the grid of 90° and try to solve the other seven 'vertical rows'...
Hint 2 :
The colors aren't relevant for the solution, image the cells with binary code...
Hint 3 :
Miyamoto did not have the technological know-how to solve the puzzle
Hint 4 :
The first row is a word. The second row is a word.