element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#011 – GLCD Paddle Game
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 27 subscribers
  • Views 678 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#011 – GLCD Paddle Game

cy.wbz
cy.wbz over 12 years ago

Hello!

 

Today’s example project uses the Sparkfun Graphical LCD Display and the custom GLCD component detailed in Example #09. This example project uses the GLCD component to generate a simple game where users press buttons to control a paddle to hit a moving ball. If the ball gets past the paddle then the user will lose the game.

 

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Zip File of Images
    • Project Schematic
    • Component Configurations

 

Components Used:

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • Custom GLCD
  • Annotated Library for Pioneer Kit
  • CyPins

 

The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

This example project uses the custom GLCD component and the button inputs on the Sparkfun GLCD shield board to generate a simple paddle and ball game. The game is simple, the user must not allow the ball past the paddle. The S1 and S3 buttons on the Sparkfun LCD shield are used to control the onscreen paddle. The user can either move the paddle up or down. If the user misses the ball the screen will go black and the user will need to hit the reset button on the Pioneer kit to play again.

 

Hardware Connections:

 

There are no hardware connections outside of connecting the Graphics LCD Shield to the Pioneer Kit.

 

Test Your Project:

 

Once the kit is programmed with the example project the user will be able to begin playing the Paddle and Ball game.

 

I hope this example can help you out in your design.

 

Best,

 

Matt

Attachments:
0116.Project Images.zip
GLCD_PaddleGame.zip
  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 12 years ago in reply to cy.gul +1
    This is definitely a cool example. One nice feature to add is saving the highest-score achieved by the player. This could be done by counting number of ball-paddle collisions. Both the current score and…
  • cy.wbz
    cy.wbz over 12 years ago in reply to Former Member +1
    We all have to understand that Antonio put in this feature request to me earlier this week. This post is just a Guilt Trip! We will be posting the example on Monday to support the flash storage. It will…
Parents
  • cy.gul
    cy.gul over 12 years ago

    This was a fun game to play! =)

    I'm really liking this graphics LCD shield, the PSoC Component makes it so easy to interface with the LCD over SPI.

     

     

     

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to cy.gul

    This is definitely a cool example. One nice feature to add is saving the highest-score achieved by the player. This could be done by counting number of ball-paddle collisions. Both the current score and the highest score could then be displayed on the LCD. Saving the highest score in flash would allow score retention even after a reset.

     

    I believe Max is going to upload a project on Monday which shows how to save a value to flash..

     

    Any takers to add this feature ? image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 12 years ago in reply to cy.gul

    This is definitely a cool example. One nice feature to add is saving the highest-score achieved by the player. This could be done by counting number of ball-paddle collisions. Both the current score and the highest score could then be displayed on the LCD. Saving the highest score in flash would allow score retention even after a reset.

     

    I believe Max is going to upload a project on Monday which shows how to save a value to flash..

     

    Any takers to add this feature ? image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • cy.wbz
    cy.wbz over 12 years ago in reply to Former Member

    We all have to understand that Antonio put in this feature request to me earlier this week. This post is just a Guilt Trip! image We will be posting the example on Monday to support the flash storage. It will merge nicely with Antonio's feature request image

     

    -Matt

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube