Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Nerves at home: Controlling a desk #23
I've been doing a lot of projects around home using Nerves. Some have been for fun mainly for learning (like this one) and some are to serve a specific purpose.
This was a good learning experience, so thought I should share it. I'm planning on writing more about my other projects as I complete them and problem scope under
Let me know what you think
It's live. I reread and realized that in my excitement, I skipped over the binary pattern match.
iex(3)> <<_, _, height::size(16)>> = <<1, 1, 1, 53>> <<1, 1, 1, 53>> iex(4)> height 309 iex(5)> height / 10 30.9
So in the pattern match part of the function, you can match on