Example Code for Arduino-Draw Point

Last revision 2025/12/27

Demonstrate how to draw a point at any position on the FireBeetle Covers-24×8 LED Matrix.

Hardware Preparation

Software Preparation

Other Preparation Work

You can draw points at any place of the Matrix. X-Y axis coordinate diagram:

DFR0487- X-Y Axis Coordinate Diagram

Sample Code

Initialize HT1632C display and keep pixel (0,0) lit statically.

#include "DFRobot_HT1632C.h"

#if defined( ESP_PLATFORM ) || defined( ARDUINO_ARCH_FIREBEETLE8266 )
#define DATA D6
#define CS D2
#define WR D7
//#define RD D8
#else
#define DATA 6
#define CS 2
#define WR 7
//#define RD 8
#endif

DFRobot_HT1632C ht1632c = DFRobot_HT1632C(DATA, WR, CS);

void setup() {
  ht1632c.begin();                // Initialize HT1632C display
  ht1632c.isLedOn(true);          // Turn on the display LED/backlight
  ht1632c.clearScreen();          // Clear all content on the display

  ht1632c.setPixel(0, 0);         // Light up the single pixel at coordinate (0,0)
  ht1632c.writeScreen();          // Refresh the display to make the pixel visible
}

void loop() {
  // No repeated operations needed, the pixel remains on statically
}

Result

A point is displayed at the (0,0) coordinate on the LED matrix.

Was this article helpful?

TOP