A reprodução carrega o leitor integrado do YouTube (modo de privacidade melhorada).
Tutorial Arduino com Ecrã Nokia 5110 - Parte 1: Ligação e Programação Inicial
CanalJulian IlettDescrição do autor
O código é escrito do zero, sem usar bibliotecas. Eis o código completo:
`
void LcdWriteCmd(byte cmd)
{
digitalWrite(DC, LOW); // Pino DC em LOW para comandos
digitalWrite(CE, LOW);
shiftOut(DIN, CLK, MSBFIRST, cmd); // Transmite dados em série
digitalWrite(CE, HIGH);
}
void setup()
{
pinMode(RST, OUTPUT);
pinMode(CE, OUTPUT);
pinMode(DC, OUTPUT);
pinMode(DIN, OUTPUT);
pinMode(CLK, OUTPUT);
digitalWrite(RST, LOW);
digitalWrite(RST, HIGH);
LcdWriteCmd(0x21); // Comandos estendidos do ecrã
LcdWriteCmd(0xB8); // Ajuste do contraste (Vop)
LcdWriteCmd(0x04); // Coeficiente de temperatura
LcdWriteCmd(0x14); // Modo de viés 1:40
LcdWriteCmd(0x20); // Comandos básicos do ecrã
LcdWriteCmd(0x09); // Liga todos os segmentos
}
void loop()
{
Sobre este tutorial
Julian Ilett publicou este tutorial em vídeo de 15:03 em 26 de outubro de 2014. Foi visto 234 308 vezes no YouTube.
- Canal
- Julian Ilett
- Categoria
- Ciência e tecnologia
- Duração
- 15:03
- Publicado
- 26 de outubro de 2014
- Visualizações
- 234 308
- Gostos
- 1 313
Partilhar
Leitura complementar
-
Nokia 5110 LCD and Arduino – Ultimate Tutorial and Guide
duino4projects.com
Interfacing Nokia 5110 LCD Display To Arduino. In this article, we are publishing a project tutorial which explains different aspects of interfacing a Graphical LCD (GLCD ) Nokia 5110 with Arduino. Nokia 5110 is a 48 x…
-
In-Depth: Interface Nokia 5110 Graphic LCD Display with Arduino
lastminuteengineers.com
GND should be connected to the ground of Arduino. Wiring Nokia 5110 LCD display module to Arduino Uno. Before we get to uploading code and sending data to the display, let’s hook the display up to the Arduino. Connectio…
-
Complete Guide for Nokia 5110 LCD with Arduino | Random Nerd ...
randomnerdtutorials.com
Great job on the tutorial on the Nokia 5110 LCD with Arduino. I have been working with the 5110 for the past year and your tutorial was exactly what was needed for those new to the Nokia 5110 LCD with Arduino set up. I…
Este tutorial noutros idiomas
- ENArduino Nokia 5110 LCD Tutorial #1 - Connecting and Initial Programming
- FRLCD Arduino Nokia 5110 Tutoriel # 1 - Connexion et programmation initiale
- ESArduino Nokia 5110 LCD Tutorial # 1 - Conexión y Programación Inicial
- ITArduino Nokia 5110 LCD Tutorial # 1 - Collegamento e programmazione iniziale
- DEArduino Nokia 5110 LCD-Tutorial # 1 - Anschließen und Erste Programmierung
- NLArduino Nokia 5110 LCD Tutorial # 1 - Het aansluiten en Startprogrammering
- RUArduino Nokia 5110 LCD Tutorial # 1 - Подключение и Начальное программирование
- PLArduino Nokia 5110 LCD Tutorial # 1 - Podłączanie i wstępnego programowania
- JAArduinoのノキア5110 LCDチュートリアル#1 - 接続および初期プログラミング
- ARاردوينو نوكيا 5110 LCD دروس # 1 - توصيل والبرمجة الأولية
- HIArduino नोकिया 5110 एलसीडी ट्यूटोरियल # 1 - कनेक्ट और प्रारंभिक प्रोग्रामिंग
- IDArduino Nokia 5110 LCD Tutorial # 1 - Menghubungkan dan Pemrograman Awal