SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
Timberman con LCD5110 
& Arduino UNO 
Volkan Rivera
Qué es el juego Timberman 
● TimberMan (Leñador) es un juego de Android 
inspirado en los juegos de las microcomputadoras de 
8 bits de los años 80. 
● Hasta donde tengo entendido el juego nunca existió 
para computadoras de 8 bits. 
● Es parecido en concepto al popular Flappy Birds, 
pero usa una idea que puede ser implementada sin 
necesidad de scrolling o un sistema de base de 
tiempo.
Qué usaremos? 
Arduino UNO 
Pantalla LCD 5110 
2 Botones 
2 Resistencias de 2.2 KOhms. 
Librería de Nokia LCD 5110 
Librería de Buttons
Pondremos todo en código LCD 
Nokia 5110 en un archivo separado 
Usaremos el código publicado aquí en Arduino 
website para crear nuestra librería para 
manejar la pantalla: 
http://playground.arduino.cc/Code/PCD8544 
El truco: Agregar la línea “<Arduino.h>”
La librería para manejar los botones 
Para manejar los dos botones que necesitamos 
usaré está librería que es orientada a eventos: 
https://github.com/carlynorama/Arduino-Library- 
Button/
Breve ejemplo de uso de la librería 
de botones 
#include <Button.h> 
// Inicializar el objeto Button en el pin 
8 
Button boton8 = Button(8, LOW); 
// Inicializar el objeto Button en el pin 
9 
Button boton9 = Button(9, LOW); 
void setup() 
{ 
Serial.begin(9600); 
} 
void loop() 
{ 
boton8.listen(); 
boton9.listen(); 
if (boton8.onPress()){ 
Serial.println("Presiono boton 8"); 
} 
if (boton9.onPress()) { 
Serial.println("Presiono boton 9"); 
} 
}
Descargando el código de 
Timberman para Arduino 
Descargamos nuestro programa desde github: 
https://github.com/volkan68/ArduinoTimberman

Más contenido relacionado

Último

Modulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfModulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdf
AnnimoUno1
 

Último (11)

Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21Innovaciones tecnologicas en el siglo 21
Innovaciones tecnologicas en el siglo 21
 
Avances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estosAvances tecnológicos del siglo XXI y ejemplos de estos
Avances tecnológicos del siglo XXI y ejemplos de estos
 
pruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNITpruebas unitarias unitarias en java con JUNIT
pruebas unitarias unitarias en java con JUNIT
 
How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.How to use Redis with MuleSoft. A quick start presentation.
How to use Redis with MuleSoft. A quick start presentation.
 
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptxPROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
PROYECTO FINAL. Tutorial para publicar en SlideShare.pptx
 
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
Resistencia extrema al cobre por un consorcio bacteriano conformado por Sulfo...
 
EVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptx
EVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptxEVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptx
EVOLUCION DE LA TECNOLOGIA Y SUS ASPECTOSpptx
 
Modulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdfModulo-Mini Cargador.................pdf
Modulo-Mini Cargador.................pdf
 
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdfRefrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
Refrigerador_Inverter_Samsung_Curso_y_Manual_de_Servicio_Español.pdf
 
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptxEL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
EL CICLO PRÁCTICO DE UN MOTOR DE CUATRO TIEMPOS.pptx
 
Avances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvanaAvances tecnológicos del siglo XXI 10-07 eyvana
Avances tecnológicos del siglo XXI 10-07 eyvana
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Timberman con lcd5110 & arduino uno

  • 1. Timberman con LCD5110 & Arduino UNO Volkan Rivera
  • 2. Qué es el juego Timberman ● TimberMan (Leñador) es un juego de Android inspirado en los juegos de las microcomputadoras de 8 bits de los años 80. ● Hasta donde tengo entendido el juego nunca existió para computadoras de 8 bits. ● Es parecido en concepto al popular Flappy Birds, pero usa una idea que puede ser implementada sin necesidad de scrolling o un sistema de base de tiempo.
  • 3. Qué usaremos? Arduino UNO Pantalla LCD 5110 2 Botones 2 Resistencias de 2.2 KOhms. Librería de Nokia LCD 5110 Librería de Buttons
  • 4. Pondremos todo en código LCD Nokia 5110 en un archivo separado Usaremos el código publicado aquí en Arduino website para crear nuestra librería para manejar la pantalla: http://playground.arduino.cc/Code/PCD8544 El truco: Agregar la línea “<Arduino.h>”
  • 5. La librería para manejar los botones Para manejar los dos botones que necesitamos usaré está librería que es orientada a eventos: https://github.com/carlynorama/Arduino-Library- Button/
  • 6. Breve ejemplo de uso de la librería de botones #include <Button.h> // Inicializar el objeto Button en el pin 8 Button boton8 = Button(8, LOW); // Inicializar el objeto Button en el pin 9 Button boton9 = Button(9, LOW); void setup() { Serial.begin(9600); } void loop() { boton8.listen(); boton9.listen(); if (boton8.onPress()){ Serial.println("Presiono boton 8"); } if (boton9.onPress()) { Serial.println("Presiono boton 9"); } }
  • 7. Descargando el código de Timberman para Arduino Descargamos nuestro programa desde github: https://github.com/volkan68/ArduinoTimberman