Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mtgrosser authored Feb 11, 2024
1 parent c106a06 commit 962a3e5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,22 @@ dmtx.to_i

# Binary representation
dmtx.to_i.to_s(2)
=> "1010101010101010101110101000001111010111111101101001101011101001100110010100111010111011111100111001011001001000100010000111010110110001101111001011001001101011110000011111110010101101101010111001101001000000111100101000110110101110011100101111111111111111"
=> "1010101010101010
1011101010000011
1101011111110110
1001101011101001
1001100101001110
1011101111110011
1001011001001000
1000100001110101
1011000110111100
1011001001101011
1100000111111100
1010110110101011
1001101001000000
1111001010001101
1010111001110010
1111111111111111"

# Choose encoding
Dmtx::DataMatrix.new('Chunky Bacon', encoding: :txt)
Expand Down

0 comments on commit 962a3e5

Please sign in to comment.