element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Nico teWinkel's Blog Arduino R4 WiFi - Using the LED display
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 4 Aug 2023 4:31 AM Date Created
  • Views 5406 views
  • Likes 8 likes
  • Comments 2 comments
  • led matrix
  • Arduino R4 Wifi
Related
Recommended

Arduino R4 WiFi - Using the LED display

ntewinkel
ntewinkel
4 Aug 2023
Arduino R4 WiFi - Using the LED display

After trying the basic Blink sketch and blinking a single LED, I thought I'd up the ante by blinking a great many LEDs!

I first tried out the included example LED_Matrix/DisplaySingleFrame, which shows up when you connect the board, or if you choose the Uno R4 WiFi as the currently selected board.

I used the LED Matrix Editor at the Arduino Website to draw my images, which is a whole lot quicker and easier than setting individual bits to indicate an LED being on in the matrix:

Arduino Uno R4 Wifi LED Matrix Editor

You can download the code in a couple of formats: 1) as an animation by using the download button, or 2, in a .h file containing the defined constants by using that </> button.

I used the .h file format, and then pulled out the individual frames out of the array and gave them names, and updated the .ino file to use the new names.
My .h file looks like this, for the images you can see in the editor picture above.

/*
frames.h

Holds the definitions for the frames to display on the Arduino Uno R4 LED Matrix.

You can easily build the frames by drawing them with the LED Matrix Editor:
https://ledmatrix-editor.arduino.cc

*/

const uint32_t arrow_left[] = {
		0x400c01c,
		0x3fc3fc1,
		0xcc0cc04c,
		66
};

const uint32_t arrow_right[] = {
		0x2003003,
		0x83fc3fc3,
		0x38330320,
		66
};

const uint32_t arrow_up[] = {
		0x600f01f,
		0x83fc0600,
		0x60060060,
		66
};

const uint32_t arrow_down[] = {
		0x6006006,
		0x603fc1,
		0xf80f0060,
		66
};

const uint32_t stop[] = {
		0x1f81f,
		0x81f81f81,
		0xf81f8000,
		66
};

Success!

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

Step into the world of open-source electronics! Our online stores feature the full assortment of arduino products for every skill level.

  • Sign in to reply
  • mp2100
    mp2100 over 2 years ago

    Nice demo.  A friend lent to me his new Uno R4, but I haven’t found time to play with it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 2 years ago

    Cool project Nicko.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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