Giter Club home page Giter Club logo

ex_lcd's Introduction

Hi there ๐Ÿ‘‹

ex_lcd's People

Contributors

cthree avatar tmecklem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ex_lcd's Issues

create_char crashes

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}]

Upgrade to circuits_gpio?

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!

Using an I2C controller with ex_lcd

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.