elixir-circuits / circuits_quickstart Goto Github PK
View Code? Open in Web Editor NEWTry out Elixir Circuits on Nerves!
Try out Elixir Circuits on Nerves!
Hi folks,
Under the heading "Breadboard", is the following paragraph:
"Insert the LED somewhere on the breadboard. Note that the longer leg of the LED is the positive side, and the shorter side is the negative side. Then take the resistor and bend the legs down as shown in the image. Insert the"
(continue train of thought here)
Hooray! My first GitHub contribution! :)
Thanks,
Ken / professorsnapper.
P.S. I'm delighted at the brevity & clarity of this Readme. Even a newbie like me can follow it quite well!
Building the Elixir Circuits Quickstart firmware fails after mix firmware..
is this a bug or something I have not configured correctly?
$ git clone https://github.com/elixir-circuits/circuits_quickstart.git
$ cd circuits_quickstart
$ export MIX_TARGET=rpi0
$ mix deps.get
$ mix firmware
.
.
.
`
|nerves_bootstrap| Building OTP Release...
15:18:53.506 [error] Task #PID<0.4942.0> started from #PID<0.94.0> terminating
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/tasks/release.ex:1300: Mix.Tasks.Release.copy/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &:erlang.apply/2
Args: [#Function<0.91251738/1 in Mix.Tasks.Release.assemble/1>, [consolidated: "/Users/elay15/projects/nerves/circuits_quickstart/_build/rpi3_dev/lib/circuits_quickstart/consolidated"]]
15:18:53.506 [error] Task #PID<0.4944.0> started from #PID<0.94.0> terminating
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/release.ex:727: Mix.Release.copy_app/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &:erlang.apply/2
Args: [#Function<0.91251738/1 in Mix.Tasks.Release.assemble/1>, [:vintage_net_ethernet]]
15:18:53.506 [error] Task #PID<0.4949.0> started from #PID<0.94.0> terminating
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/release.ex:727: Mix.Release.copy_app/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &:erlang.apply/2
Args: [#Function<0.91251738/1 in Mix.Tasks.Release.assemble/1>, [:runtime_tools]]
15:18:53.506 [error] Task #PID<0.4945.0> started from #PID<0.94.0> terminating
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/release.ex:727: Mix.Release.copy_app/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &:erlang.apply/2
Args: [#Function<0.91251738/1 in Mix.Tasks.Release.assemble/1>, [:nerves_ssh]]
15:18:53.506 [error] Task #PID<0.4946.0> started from #PID<0.94.0> terminating
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/release.ex:727: Mix.Release.copy_app/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &:erlang.apply/2
Args: [#Function<0.91251738/1 in Mix.Tasks.Release.assemble/1>, [:circuits_i2c]]
15:18:53.506 [error] Task #PID<0.4947.0> started from #PID<0.94.0> terminating
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/release.ex:727: Mix.Release.copy_app/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &:erlang.apply/2
Args: [#Function<0.91251738/1 in Mix.Tasks.Release.assemble/1>, [:inets]]
15:18:53.506 [error] Task #PID<0.4948.0> started from #PID<0.94.0> terminating
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/release.ex:727: Mix.Release.copy_app/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Function: &:erlang.apply/2
Args: [#Function<0.91251738/1 in Mix.Tasks.Release.assemble/1>, [:vintage_net]]
** (EXIT from #PID<0.94.0>) an exception was raised:
** (BadBooleanError) expected a boolean on left-side of "and", got: [keep: ["Docs"]]
(mix 1.10.4) lib/mix/release.ex:760: anonymous fn/5 in Mix.Release.copy_ebin/3
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(mix 1.10.4) lib/mix/release.ex:756: Mix.Release.copy_ebin/3
(mix 1.10.4) lib/mix/release.ex:727: Mix.Release.copy_app/2
(elixir 1.10.4) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.4) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.13.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
15:18:53~/projects/nerves/circuits_quickstart (main)
$ elixir -v
Erlang/OTP 23 [erts-11.1.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Elixir 1.10.4 (compiled with Erlang/OTP 23)
16:32:10~/projects/nerves/circuits_quickstart (main)
16:33:05~/projects/nerves/circuits_quickstart (main)
$ mix nerves.info
==> nerves
==> circuits_quickstart
Nerves environment
MIX_TARGET: rpi3
MIX_ENV: dev
|nerves_bootstrap| Environment Package List
Pkg: nerves_toolchain_ctng
Vsn: 1.7.2
Type: toolchain_platform
BuildRunner: {nil, []}
Pkg: nerves_toolchain_arm_unknown_linux_gnueabihf
Vsn: 1.3.2
Type: toolchain
BuildRunner: {Nerves.Artifact.BuildRunners.Local, []}
Pkg: nerves_system_br
Vsn: 1.13.7
Type: system_platform
BuildRunner: {nil, []}
Pkg: nerves_system_rpi3
Vsn: 1.13.3
Type: system
BuildRunner: {Nerves.Artifact.BuildRunners.Docker, []}
|nerves_bootstrap| Loadpaths Start
Nerves environment
MIX_TARGET: rpi3
MIX_ENV: dev
|nerves_bootstrap| Environment Variable List
target: rpi3
toolchain: /Users/elay15/.nerves/artifacts/nerves_toolchain_arm_unknown_linux_gnueabihf-darwin_x86_64-1.3.2
system: /Users/elay15/.nerves/artifacts/nerves_system_rpi3-portable-1.13.3
app: /Users/elay15/projects/nerves/circuits_quickstart
|nerves_bootstrap| Loadpaths End
Nerves: 1.7.2
Nerves Bootstrap: 1.10.1
Elixir: 1.10.4
|nerves_bootstrap| Info End
16:33:17~/projects/nerves/circuits_quickstart (main)
`
I just thought it would be nice if we can enable WiFi when burning micro SD card like nerves_livebook
.
https://github.com/livebook-dev/nerves_livebook#burning-the-firmware-for-devices-that-boot-from-microsd
It seems that many newbies (including me) had issues and confusion about the USB gadget mode. While I assume most people have WiFi access, it might be difficult to judge which USB cables are compatible for the USB gadget mode.
I burned circuits_quickstart_rpi4.fw
v0.4.6
to "Raspberry Pi 4 - Model B" the red and green lights turn on and go off after a few seconds. I tried the previous version 0.4.5
but still, have the same issue. I tried checking using two different USB-C cables but there is no difference at all.
Dependabot can't evaluate your Elixir dependency files.
As a result, Dependabot couldn't check whether any of your dependencies are out-of-date.
The error Dependabot encountered was:
** (Mix) Archive "nerves_bootstrap" could not be found. Please make sure the archive is installed locally.
{"error":""}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.