Skip to content

Commit 62d491b

Browse files
authored
Merge pull request #24 from GregMefford/release_prep
Cleanup and prep for 1.0.0 release
2 parents b453ef7 + 57a618d commit 62d491b

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ BUILD = $(MIX_COMPILE_PATH)/../obj
2222
ifeq ($(CROSSCOMPILE),)
2323
# Host testing build
2424
CFLAGS += -DDEBUG
25-
SRC = src/rpi_ws281x.c src/fake_ws2811.c
25+
SRC = src/blinkchain.c src/fake_ws2811.c
2626
else
2727
# Normal build
28-
SRC = src/rpi_ws281x.c src/rpi_ws281x/dma.c src/rpi_ws281x/mailbox.c \
28+
SRC = src/blinkchain.c src/rpi_ws281x/dma.c src/rpi_ws281x/mailbox.c \
2929
src/rpi_ws281x/mailbox.c src/rpi_ws281x/pwm.c src/rpi_ws281x/rpihw.c \
3030
src/rpi_ws281x/pcm.c src/rpi_ws281x/ws2811.c
3131
endif

lib/blinkchain/hal.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ defmodule Blinkchain.HAL do
6262

6363
# This is intended to be used for testing.
6464
# It causes `Blinkchain.HAL` to send feedback to the registered process
65-
# whenever it gets output from the rpi_ws281x Port.
65+
# whenever it gets output from the `blinkchain` Port.
6666
# It's a call instead of a cast so that we can synchronously make sure
6767
# it got registered before we move on to the next step.
6868
def handle_call(:subscribe, {from, _ref}, state) do
@@ -123,7 +123,7 @@ defmodule Blinkchain.HAL do
123123
end
124124

125125
def handle_info({_port, {:exit_status, exit_status}}, state) do
126-
{:stop, "rpi_ws281x OS process died with status: #{inspect(exit_status)}", state}
126+
{:stop, "blinkchain OS process died with status: #{inspect(exit_status)}", state}
127127
end
128128

129129
# Private Helpers
@@ -189,9 +189,9 @@ defmodule Blinkchain.HAL do
189189
{^port, {:data, {_, 'OK: ' ++ response}}} -> {:ok, to_string(response)}
190190
{^port, {:data, {_, 'OK'}}} -> :ok
191191
{^port, {:data, {_, 'ERR: ' ++ response}}} -> {:error, to_string(response)}
192-
{^port, {:exit_status, exit_status}} -> raise "rpi_ws281x OS process died with status: #{inspect(exit_status)}"
192+
{^port, {:exit_status, exit_status}} -> raise "blinkchain OS process died with status: #{inspect(exit_status)}"
193193
after
194-
500 -> raise "timeout waiting for rpi_ws281x OS process to reply"
194+
500 -> raise "timeout waiting for blinkchain OS process to reply"
195195
end
196196
end
197197

mix.exs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Blinkchain.Mixfile do
22
use Mix.Project
33

4-
@version "1.0.0-rc1dev"
4+
@version "1.0.0"
55

66
def project do
77
[
@@ -21,7 +21,10 @@ defmodule Blinkchain.Mixfile do
2121
],
2222
deps: deps(),
2323
test_coverage: [tool: ExCoveralls],
24-
preferred_cli_env: [coveralls: :test, "coveralls.circle": :test],
24+
preferred_cli_env: [
25+
coveralls: :test,
26+
"coveralls.circle": :test
27+
],
2528
docs: [
2629
main: "readme",
2730
extras: [
@@ -69,9 +72,7 @@ defmodule Blinkchain.Mixfile do
6972
"lib",
7073
"src/*.[ch]",
7174
"src/rpi_ws281x/*.[ch]",
72-
"config",
7375
"mix.exs",
74-
"README*",
7576
"LICENSE*",
7677
"Makefile"
7778
],

mix.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
%{
22
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
3-
"certifi": {:hex, :certifi, "2.4.2", "75424ff0f3baaccfd34b1214184b6ef616d89e420b258bb0a5ea7d7bc628f7f0", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"},
3+
"certifi": {:hex, :certifi, "2.5.1", "867ce347f7c7d78563450a18a6a28a8090331e77fa02380b4a21962a65d36ee5", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"},
44
"conform": {:hex, :conform, "0.13.0"},
5-
"credo": {:hex, :credo, "1.0.0", "aaa40fdd0543a0cf8080e8c5949d8c25f0a24e4fc8c1d83d06c388f5e5e0ea42", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
6-
"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], []},
7-
"earmark": {:hex, :earmark, "1.3.0", "17f0c38eaafb4800f746b457313af4b2442a8c2405b49c645768680f900be603", [:mix], [], "hexpm"},
5+
"credo": {:hex, :credo, "1.1.0", "e0c07b2fd7e2109495f582430a1bc96b2c71b7d94c59dfad120529f65f19872f", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
6+
"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], [], "hexpm"},
7+
"earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"},
88
"elixir_ale": {:hex, :elixir_ale, "0.3.0"},
99
"elixir_make": {:hex, :elixir_make, "0.6.0", "38349f3e29aff4864352084fc736fa7fa0f2995a819a737554f7ebd28b85aaab", [:mix], [], "hexpm"},
10-
"ex_doc": {:hex, :ex_doc, "0.19.1", "519bb9c19526ca51d326c060cb1778d4a9056b190086a8c6c115828eaccea6cf", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.7", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"},
11-
"excoveralls": {:hex, :excoveralls, "0.10.3", "b090a3fbcb3cfa136f0427d038c92a9051f840953ec11b40ee74d9d4eac04d1e", [:mix], [{:hackney, "~> 1.13", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
10+
"ex_doc": {:hex, :ex_doc, "0.20.2", "1bd0dfb0304bade58beb77f20f21ee3558cc3c753743ae0ddbb0fd7ba2912331", [:mix], [{:earmark, "~> 1.3", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"},
11+
"excoveralls": {:hex, :excoveralls, "0.11.1", "dd677fbdd49114fdbdbf445540ec735808250d56b011077798316505064edb2c", [:mix], [{:hackney, "~> 1.0", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
1212
"exrm": {:hex, :exrm, "0.15.3"},
13-
"hackney": {:hex, :hackney, "1.14.3", "b5f6f5dcc4f1fba340762738759209e21914516df6be440d85772542d4a5e412", [:rebar3], [{:certifi, "2.4.2", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.4", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"},
13+
"hackney": {:hex, :hackney, "1.15.1", "9f8f471c844b8ce395f7b6d8398139e26ddca9ebc171a8b91342ee15a19963f4", [:rebar3], [{:certifi, "2.5.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.4", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"},
1414
"idna": {:hex, :idna, "6.0.0", "689c46cbcdf3524c44d5f3dde8001f364cd7608a99556d8fbd8239a5798d4c10", [:rebar3], [{:unicode_util_compat, "0.4.1", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm"},
1515
"jason": {:hex, :jason, "1.1.2", "b03dedea67a99223a2eaf9f1264ce37154564de899fd3d8b9a21b1a6fd64afe7", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"},
16-
"makeup": {:hex, :makeup, "0.5.5", "9e08dfc45280c5684d771ad58159f718a7b5788596099bdfb0284597d368a882", [:mix], [{:nimble_parsec, "~> 0.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"},
17-
"makeup_elixir": {:hex, :makeup_elixir, "0.10.0", "0f09c2ddf352887a956d84f8f7e702111122ca32fbbc84c2f0569b8b65cbf7fa", [:mix], [{:makeup, "~> 0.5.5", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"},
16+
"makeup": {:hex, :makeup, "0.8.0", "9cf32aea71c7fe0a4b2e9246c2c4978f9070257e5c9ce6d4a28ec450a839b55f", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"},
17+
"makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"},
1818
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm"},
19-
"mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], [], "hexpm"},
20-
"nimble_parsec": {:hex, :nimble_parsec, "0.4.0", "ee261bb53214943679422be70f1658fff573c5d0b0a1ecd0f18738944f818efe", [:mix], [], "hexpm"},
19+
"mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm"},
20+
"nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"},
2121
"parse_trans": {:hex, :parse_trans, "3.3.0", "09765507a3c7590a784615cfd421d101aec25098d50b89d7aa1d66646bc571c1", [:rebar3], [], "hexpm"},
2222
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.4", "f0eafff810d2041e93f915ef59899c923f4568f4585904d010387ed74988e77b", [:make, :mix, :rebar3], [], "hexpm"},
2323
"unicode_util_compat": {:hex, :unicode_util_compat, "0.4.1", "d869e4c68901dd9531385bb0c8c40444ebf624e60b6962d95952775cac5e90cd", [:rebar3], [], "hexpm"},

src/rpi_ws281x.c renamed to src/blinkchain.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void fill(ws2811_channel_t *channels, const canvas_t *canvas) {
248248
reply_error("Cannot draw outside canvas dimensions");
249249
return;
250250
}
251-
uint16_t row, col, offset;
251+
uint16_t row, col;
252252
for(row = 0; row < height; row++) {
253253
for(col = 0; col < width; col++) {
254254
write_pixel(x + col, y + row, color, channels, canvas);
@@ -439,7 +439,6 @@ int main(int argc, char *argv[]) {
439439
} else if (strcasecmp(buffer, "print_topology") == 0) {
440440
debug("Called print_topology()");
441441
uint16_t x, y, offset;
442-
char buffer[1024];
443442
for(y = 0; y < canvas.height; y++) {
444443
for(x = 0; x < canvas.width; x++) {
445444
offset = canvas.topology[(canvas.width * y) + x];

0 commit comments

Comments
 (0)