Skip to content

Commit fdca8d0

Browse files
committed
feat(wokwi-max7219-matrix): arduino uno test
1 parent caf8642 commit fdca8d0

File tree

8 files changed

+68
-0
lines changed

8 files changed

+68
-0
lines changed

.github/workflows/wokwi-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
- name: led-ring-uno
4747
path: wokwi-led-ring/neopixel-uno
4848
scenario: neopixel.test.yaml
49+
- name: max7219-uno
50+
path: wokwi-max7219-matrix/max7219-uno
51+
scenario: max7219.test.yaml
4952
- name: microsd-card-esp32
5053
path: wokwi-microsd-card/sd-esp32
5154
scenario: sd.test.yaml

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ This repository contains a set of test projects for many Wokwi parts. The tests
2020
- [ESP32-C3 + I2C](./wokwi-lcd1602/lcd-i2c-esp32-c3/)
2121
- wokwi-led-ring
2222
- [Arduino Uno](./wokwi-led-ring/neopixel-uno/)
23+
- wokwi-max7219-matrix
24+
- [Arduino Uno](./wokwi-max7219-matrix/max7219-uno/)
2325
- wokwi-micro-sd
2426
- [ESP32](./wokwi-micro-sd/sd-esp32/)
2527
- wokwi-photoresistor-sensor
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version": 1,
3+
"author": "Uri Shaked",
4+
"editor": "wokwi",
5+
"parts": [
6+
{ "type": "wokwi-arduino-uno", "id": "uno", "top": 106.2, "left": 393, "attrs": {} },
7+
{
8+
"type": "wokwi-max7219-matrix",
9+
"id": "m1",
10+
"top": 0,
11+
"left": 44.71,
12+
"attrs": { "chain": "8" }
13+
}
14+
],
15+
"connections": [
16+
[ "uno:5V", "m1:V+", "red", [ "v30", "*", "h50" ] ],
17+
[ "uno:10", "m1:CS", "green", [ "v-25", "*", "h20" ] ],
18+
[ "uno:11", "m1:DIN", "orange", [ "v-15", "*", "h30" ] ],
19+
[ "uno:13", "m1:CLK", "blue", [ "v-35", "*", "h10" ] ],
20+
[ "uno:GND.2", "m1:GND", "black", [ "v20", "*", "h40" ] ]
21+
]
22+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 1
2+
name: 'MAX7219 Dot Matrix Test'
3+
author: 'Uri Shaked'
4+
5+
steps:
6+
- wait-serial: 'Display ready.'
7+
- take-screenshot:
8+
part-id: 'm1'
9+
compare-with: 'screenshots/max7219.png'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[env:uno]
2+
platform = atmelavr
3+
board = uno
4+
framework = arduino
5+
lib_deps =
6+
majicdesigns/MD_Parola@3.7.3
603 Bytes
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <MD_Parola.h>
2+
#include <MD_MAX72xx.h>
3+
#include <SPI.h>
4+
5+
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
6+
#define MAX_DEVICES 8
7+
8+
#define CLK_PIN 13
9+
#define DATA_PIN 11
10+
#define CS_PIN 10
11+
12+
MD_Parola P = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
13+
14+
void setup(void) {
15+
Serial.begin(115200);
16+
P.begin();
17+
P.print(" Hello, Wokwi!");
18+
Serial.println("Display ready.");
19+
}
20+
21+
void loop(void) {
22+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[wokwi]
2+
version = 1
3+
firmware = '.pio/build/uno/firmware.elf'
4+
elf = '.pio/build/uno/firmware.elf'

0 commit comments

Comments
 (0)