HomeProdutos › Arduino Shield 1602 com keypad

Arduino Shield 1602 com keypad


Peso: 56g

  


Documentação geral

Diagrama

É possível usar este shield em conjunto com o shield ethernet Wiznet W5100, mas para isso é necessário entortar ou cortar o pino 10 do shield LCD, porque conflita com o Wiznet. Essa desconexão apenas elimina a possibilidade de desligar o backlight do shield LCD.

Arduino 1.01 a 1.05  (usando biblioteca oficial)

Em cada um dos exemplos da biblioteca LiquidCrystal, basta mudar


LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

por

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

Arduino 1.01 a 1.05  (se quiser usar programas que usam LCD4bit_mod)

Instale a biblioteca LCD4bit_mod normalmente e depois faça a seguinte alteração no arquivo LCD4Bit_mod.cpp:

troque

#include "LCD4Bit_mod.h"
extern "C" {
  #include <stdio.h>  //not needed yet
  #include <string.h> //needed for strlen()
  #include <inttypes.h>
  #include "WConstants.h"  //all things wiring / arduino
}

por

#include "LCD4Bit_mod.h"
#if (ARDUINO < 100)
  extern "C" {
    #include <stdio.h>  //not needed yet
    #include <string.h> //needed for strlen()
    #include <inttypes.h>
    #include "WProgram.h"
  }
#else
  #include <Arduino.h>
#endif

Arduino 002x

Instale a biblioteca LCD4bit_mod. Ela já vem com exemplos.

1 Comments.[ Leave a comment ]

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">