016 - Brickcell 8x16 Dot Matrix Display | MakeCode Microbit
Introduction
Please refer to https://techtotinker.com/2024/01/12/brickcell_dotmatrix8x8_max7219/
Hardware Instruction
Let's explore how to connect the Dot Matrix Display module with SPI interface (MAX7219) to a micro:bit microcontroller and utilize MakeCode for programming.
- Connect the MAX7219 Dot Matrix display GND pin to microbit GND pin.
- Connect the MAX7219 Dot Matrix display VCC pin to microbit 3V3 pin.
- Connect the MAX7219 Dot Matrix display serial data input pin (DIN) to microbit pin 15.
- Connect the MAX7219 Dot Matrix display serial clock pin (CLK) to microbit pin 14.
- Connect the MAX7219 Dot Matrix display chip select pin (CS) to microbit pin 13.
Software Instruction
Now, let's start into programming the micro:bit to utilize the 8x8 MAX7219 Dot Matrix display module.
- Login to https://makecode.microbit.org/ using your Microsoft account.
- Create a new project by clicking the "New Project" button. You may name it anything you want, I suggest to name it with descriptive name such as "dotmatrix-8x16-max7219-test".
- Click the "Extensions" block just under the "Math" block.
- Type https://github.com/gbantique/brickcell-dotmatrix-max7219/ on the search bar.
- Select the "brickcell-dotmatrix-max7219" from the search results. The "dotmatrix max7219" block should appear under the "Brickcell" block.
- Copy the code provided below.
1let max7219 = Brickcell.create()
2max7219.setup(
32,
4DigitalPin.P15,
5DigitalPin.P14,
6DigitalPin.P13,
7DigitalPin.P16,
8max7219_rotation_direction.counterclockwise,
9true
10)
11basic.forever(function () {
12 max7219.scrollText(
13 "Brickcell 8x16 Dot Matrix Display",
14 150,
15 300
16 )
17})
Or you make a copy of my created project in your MakeCode workspace.
https://makecode.microbit.org/S95123-37868-60000-90667/
Expected Result
If you carefully follow the provided instruction above, you should be able to see a scrolling text "Brickcell 8x16 Dot Matrix Display".
Posts in this series
- 015 - Brickcell 8x8 Dot Matrix Display | MakeCode Microbit
- 014 - Brickcell CO2 SGP30 | MakeCode Microbit
- 013 - Brickcell Gesture APDS9960 | MakeCode Microbit
- 012 - Brickcell Rotary Encoder | MakeCode Microbit
- 011 - Brickcell RTC DS3231 | MakeCode Microbit
- 010 - Brickcell Gyro MPU6050 | MakeCode Microbit
- 009 - Brickcell TOF VL53L0X | MakeCode Microbit
- 008 - Brickcell Color TCS34725 | MakeCode Microbit
- 007 - Brickcell Pressure BMP280 | MakeCode Microbit
- 006 - Brickcell Weight HX711 | MakeCode Microbit
- 005 - Brickcell Fine Dust | MakeCode Microbit
- 004 - Brickcell Ultrasonic HCSR04 | MakeCode Microbit
- 003 - Brickcell NTC Temperature | MakeCode Microbit
- 002 - Brickcell DHT11 | MakeCode Microbit
- 001 - Brickcell LCD I2C | MakeCode Microbit
No comments yet!