HI guys,
As a part of a project i have to design a dice wich counts from 1 to 6. I have to display this in a LED dot matrix using dice pattern. I want to know how to implement number 2 on the dot matrix in two seperate rows and columns.. The code which i created is here, it can show 1 to 6 on the same row..
As a part of a project i have to design a dice wich counts from 1 to 6. I have to display this in a LED dot matrix using dice pattern. I want to know how to implement number 2 on the dot matrix in two seperate rows and columns.. The code which i created is here, it can show 1 to 6 on the same row..
process (matrix_state)
begin
case matrix_state is
when "000" => row <= "1111111";
column <= "00000";
--matrix_state<= matrix_state + 1;
when "001" => row <= "0111111";
column <= "10000";
--matrix_state<= matrix_state + 1;
when "010" => row <= "1011111";
column <= "10001";
--matrix_state<= matrix_state + 1;
when "011" => row <= "1101111";
column <= "10101";
--matrix_state<= matrix_state + 1;
when "100" => row <= "1110111";
column <= "11011";
--matrix_state<= matrix_state + 1;
when "101" => row <= "1111011";
column <= "11111";
--matrix_state<= matrix_state + 1;
when "110" => row <= "1111101";
column <= "11111";
--matrix_state<= matrix_state + 1;
when others => row <= "1111111";
column <= "00000";
--matrix_state<= matrix_state + 1;
end case;
end process;