Skip to content

Commit 9023037

Browse files
committed
Updated JayD library, bumped platform version
1 parent 58cda25 commit 9023037

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

libraries/JayD-Library/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=JayD-Library
2-
version=1.2.0
2+
version=1.2.1
33
author=CircuitMess
44
maintainer=Filip Budiša <filip@circuitmess.com>
55
sentence=An Arduino library to program Jay-D, your own mini DJ mixtable.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#include "MatrixBig.h"
2-
2+
#include <Util/HWRevision.h>
33

44
MatrixBig::MatrixBig(MatrixOutputBuffer* output) : MatrixPartOutput(output, 8, 9){}
55

66
std::pair<uint16_t, uint16_t> MatrixBig::map(uint16_t x, uint16_t y){
7-
uint8_t map[9] = { 0, 16, 32, 48, 64, 80, 96, 112, 128 };
8-
return {getWidth() - x - 1, y};
7+
if(HWRevision::get() == 2){
8+
return { x, y };
9+
}else{
10+
return { getWidth() - x - 1, y };
11+
}
912
}

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=CircuitMess ESP32
2-
version=1.8.0
2+
version=1.8.1
33

44

55

0 commit comments

Comments
 (0)