Skip to content

Commit

Permalink
Fix pinout, add missing LedControl init
Browse files Browse the repository at this point in the history
  • Loading branch information
MG-5 committed Nov 28, 2022
1 parent feca53f commit 8e42f42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Binary file added images/pinout.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions main/dfi/Dfi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ void Dfi::taskMain(void *)
currentStation = &AmbrosiusplatzRtgStadt;

initDisplayInterface();
ledControl.init();

sync::waitForAll(sync::ConnectedToWifi);
sync::waitForAll(sync::TimeIsSynchronized);
Expand Down
8 changes: 5 additions & 3 deletions main/led/LedControl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class LedControl : public IRenderTarget
protected:
void submitImage(const uint8_t *image, size_t length) override;

private:
public:
static constexpr auto PrintTag = "[LedControl]";

Gpio MultiplexerOut1{GPIO_NUM_4};
Gpio MultiplexerOut2{GPIO_NUM_13};
Gpio ControlShiftInput{GPIO_NUM_12};
Expand All @@ -32,8 +34,8 @@ class LedControl : public IRenderTarget
Gpio RegisterClock{GPIO_NUM_25}; // RCK
Gpio ShiftDataIn2{GPIO_NUM_33}; // DI for rows 3, 4, 7 and 8
Gpio ShiftDataIn1{GPIO_NUM_32}; // DI for rows 1, 2, 5 and 6
Gpio ShiftClock2{GPIO_NUM_35}; // SRCK for rows 3, 4, 7 and 8
Gpio ShiftClock1{GPIO_NUM_34}; // SRCK for rows 1, 2, 5 and 6
Gpio ShiftClock2{GPIO_NUM_18}; // SRCK for rows 3, 4, 7 and 8
Gpio ShiftClock1{GPIO_NUM_19}; // SRCK for rows 1, 2, 5 and 6

static constexpr auto PwmPin1 = GPIO_NUM_2;
static constexpr auto PwmPin2 = GPIO_NUM_15;
Expand Down

0 comments on commit 8e42f42

Please sign in to comment.