Hello!
We are from Southampton and we are
So why Elixir is like a magic potion?
Multiplayer online games?
Easy-peasy with Elixir, Phoenix and Phaser.
Build a learning touch typing thing?
Easy-peasy with Elixir, Phoenix, Phaser, arduino and some modules
Typehero Learning mode enabled
This project in development
Serial module.
defmodule Typehero.RoomChannel do
use Phoenix.Channel
def join("rooms:lobby", message, socket) do
{:ok, serial} = Serial.start_link
Serial.open(serial, "/dev/cu.usbmodem1411")
Serial.set_speed(serial, 9600)
Serial.connect(serial)
{:ok, socket}
end
end
defmodule Typehero.RoomChannel do
use Phoenix.Channel
def join("rooms:lobby", message, socket) do
...
end
def handle_info({:elixir_serial, serial, data}, state) do
cond do
data =~ ~r/1/ -> broadcast state, "arduino:finger", %{finger: 1}
data =~ ~r/2/ -> broadcast state, "arduino:finger", %{finger: 2}
true -> nil
end
{:noreply, state}
end
Listen to the channel on that event.
channel.on("arduino:finger", ({finger}) => this.fingerPress(finger))
Tracking differences between different Phoenix versions?
Easy-peasy with Phoenix-diff!
Phoenix-diff by Bryan and Ventsislav Nikolov
Join our meetup in Southampton
The next meetup scheduled for Tuesday, 8th December
Hello!
We are from Southampton and we are
Keith /@ktec
Bryan / @0xseed
Ventsi / @ventsislaf
Tetiana / @Tetiana12345678