Updated elixir documentation
This commit is contained in:
parent
87d47b9ce5
commit
cac7de7fca
@ -30,24 +30,20 @@ NOTE: This documentation is rather basic as this was open-sourced by specific re
|
||||
How to use QR Code Encoder with Elixir
|
||||
======================================
|
||||
|
||||
For now, the only way to compile qrcode is to start erlang, and compile all the files manually.
|
||||
Add :qrcode to `mix.deps`
|
||||
::
|
||||
|
||||
cd src
|
||||
erl
|
||||
defp deps do
|
||||
[{:qrcode, git: “git@gitlab.com:Pacodastre/qrcode.git”}]
|
||||
end
|
||||
|
||||
# In the interpreter, type the following:
|
||||
c(gf256)
|
||||
c(qrcode_demo)
|
||||
c(qrcode_mask)
|
||||
c(qrcode_matrix)
|
||||
c(base32)
|
||||
c(bits)
|
||||
c(qrcode_demo)
|
||||
c(qrcode)
|
||||
c(qrcode_reedsolomon)
|
||||
Then run:
|
||||
::
|
||||
|
||||
Then, whenever you have this compiled, you should have access to the functions avaiable in elixir.
|
||||
mix deps.get
|
||||
mix deps.compile
|
||||
|
||||
Then, whenever you have this compiled, you should have access to the functions available in elixir.
|
||||
|
||||
iex(1)> qrcode = :qrcode.encode(“bla”)
|
||||
{:qrcode, 1, :M, 29,
|
||||
|
Loading…
Reference in New Issue
Block a user