cthree / ex_lcd Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tmecklem/elixir_lcd
A hex package to support character matrix LCD displays in Elixir
License: Apache License 2.0
This project forked from tmecklem/elixir_lcd
A hex package to support character matrix LCD displays in Elixir
License: Apache License 2.0
Using the HD44780 driver, API command ExLCD.create_char(0, [0x1F, 0x00, 0x1F,0x00, 0x1F, 0x00,0x1f,0x00])
causes ExLCD genserver to crash:
=SUPERVISOR REPORT==== 1-Jan-1970::00:06:31 ===
Supervisor: {local,'Elixir.Hd44780Demo.Supervisor'}
Context: child_terminated
Reason: {function_clause,
[{'Elixir.ExLCD',handle_cast,
[{char,0,[31,0,31,0,31,0,31,0]},
#{'__struct__' => 'Elixir.ExLCD.LCDState',
callback => #Fun<Elixir.ExLCD.HD44780.2.12956779>,
config => #{cols => 16,
d4 => 23,
d5 => 17,
d6 => 18,
d7 => 22,
en => 24,
font_5x10 => false,
rows => 2,
rs => 25},
display => #{cols => 16,
d4 => 23,
d4_pid => <0.149.0>,
d5 => 17,
d5_pid => <0.151.0>,
d6 => 18,
d6_pid => <0.152.0>,
d7 => 22,
d7_pid => <0.153.0>,
display_control => 8,
en => 24,
en_pid => <0.154.0>,
entry_mode => 4,
font_5x10 => false,
function_set => 41,
rows => 2,
rs => 25,
rs_pid => <0.155.0>,
shift_control => 16},
driver => 'Elixir.ExLCD.HD44780'}],
[{file,"lib/ex_lcd.ex"},{line,242}]},
{gen_server,try_dispatch,4,
[{file,"gen_server.erl"},{line,601}]},
{gen_server,handle_msg,5,
[{file,"gen_server.erl"},{line,667}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,247}]}]}
Offender: [{pid,<0.148.0>},
{id,'Elixir.ExLCD'},
{mfargs,
{'Elixir.ExLCD',start_link,
[{'Elixir.ExLCD.HD44780',
#{cols => 16,
d4 => 23,
d5 => 17,
d6 => 18,
d7 => 22,
en => 24,
font_5x10 => false,
rows => 2,
rs => 25}}]}},
{restart_type,permanent},
{shutdown,5000},
{child_type,worker}]
circuits_gpio is an improved version of Elixir/ALE's GPIO support. I'm trying to encourage libraries that use Elixir/ALE to upgrade to Circuits since it's easier for me to support Circuits should any issues arise. There should also be a decent performance improvement - although it might not be noticeable under normal operation.
Thanks!
the move_to API command doesn't change the DDRAM address with HD44780 driver:
move_to(1,5)
has no apparent effect.
Currently the ex_lcd docs only show an example for using through GPIO, and the config requires many GPIO pins to be configured although an I2C controller would not require as many pins to be used. How would one go about interacting with an LCD screen through an I2C controller using the ex_lcd library, or is that even considered / possible?
Apologies if the issue is outside of scope or otherwise silly. I'm far from familiar when it comes to hardware, but love the ex_lcd library already.
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.