Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ARM?? Cortex?? M4 Cookbook

You're reading from  ARM?? Cortex?? M4 Cookbook

Product type Book
Published in Mar 2016
Publisher Packt
ISBN-13 9781782176503
Pages 296 pages
Edition 1st Edition
Languages
Author (1):
Dr. Mark Fisher Dr. Mark Fisher
Profile icon Dr. Mark Fisher
Toc

Table of Contents (16) Chapters close

ARM Cortex M4 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
A Practical Introduction to ARM CORTEX C Language Programming Programming I/O Assembly Language Programming Data Conversion Multimedia Support Real-Time Signal Processing Real-Time Embedded Systems Embedded Toolchain Index

Writing to the GLCD


Although the LED flashing programs we've written so far have served to provide a tutorial introduction to C, you are probably ready for something a little more exciting. The Graphic LCD (GLCD) touchscreen provides an interactive interface based on a 320 x 240 pixel color display. Keil provides a library of functions to write characters and bit-mapped graphics to the screen.

Getting ready

  1. Create a new folder and rename it helloLCD_c2v0. Invoke uVision5, and create a new project.

  2. After selecting the target device (STM32F407IGHx), use the RTE manager to select the MCBSTM32F400 target board, and check the following software components: Board SupportGraphic LCD, CMSIS → CORE, CMSIS → RTOS (API)KeilRTX, DeviceStartup, Device STM32Cube Framework (API)Classic. Finally, left-click on Resolve and OK.

How to do it…

  1. Create a new C source file called helloLCD.c, and enter the following statements. Although hidden by a fold, don't forget to add the boilerplate code we described...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime