Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
0.8.0 Beta 9
Browse files Browse the repository at this point in the history
New Brightness Control, Keypad Fix, and [REDACTED]
  • Loading branch information
203Null committed Apr 3, 2021
1 parent eadfee2 commit 959b099
Show file tree
Hide file tree
Showing 11 changed files with 2,682 additions and 18 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
.vagrant/rgloader/loader.rb
*.mxfw
*.bin
.vscode/arduino.json
.vscode/arduino.json
*.json
WIP
WIP
.vscode/
404 changes: 399 additions & 5 deletions .vscode/c_cpp_properties.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions Matrix.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Copyright © 203 Industries 2016–2020. All rights reserved.
#include "src/Parameter/MatrixVariable.h"
#include "src/Parameter/MatrixParameter.h"
#include "src/Core/MatrixSystem.h"
#include "src/Core/MatrixSystem.h"
#include "src/HAL/KeyPad.h"
#include "src/HAL/KeyPad.h"p0
#include "src/HAL/Touch.h"
#include "src/HAL/LED.h"
#include "src/HAL/Timer.h"
Expand All @@ -20,7 +19,7 @@ Copyright © 203 Industries 2016–2020. All rights reserved.
UI UI;
MIDI Midi;
LED LED;
KeyPad KeyPad;
KeyPad KeyPad;
Touch Touch;
Timer keypadTimer;
Timer ledTimer;
Expand Down
46 changes: 46 additions & 0 deletions src/Components/Redacted.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#include "Redacted.h"

extern KeyPad KeyPad;
extern LED LED;
extern Timer keypadTimer;
extern MicroTimer microTimer;

void Redacted::run()
{
// LED.enableOverlayMode();
LED.fill(0, true);
LED.update();
u32 progress = 0;
u32 length = sizeof(data);
while(1)
{
if (keypadTimer.tick(20))
{
if (KeyPad.scan() && KeyPad.fn.state == RELEASED)
{
break;
}
}
if (microTimer.tick(33333))
{
u8 bufferOffset = 1;
for(u8 x = 0; x < 8; x ++)
{
if((data[progress] >> x) & 0x01)
{
for(u8 y = 0; y < 8; y++)
{
LED.setXYW(xytoxy(x, y), ((data[progress + bufferOffset] >> y) & 0x01) * 255, true);
}
bufferOffset ++;
}
}
LED.update();
progress += bufferOffset;
if(progress > length)
break;
}
}
LED.fill(0, true);
LED.update();
}
Loading

0 comments on commit 959b099

Please sign in to comment.