Skip to content

Commit

Permalink
Added GPS/ECU functionality to secondary display
Browse files Browse the repository at this point in the history
  • Loading branch information
askrejans committed Jan 17, 2024
1 parent 85b8181 commit f65be41
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 254 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"random": "cpp"
}
}
46 changes: 0 additions & 46 deletions include/SecondaryDisplay.h

This file was deleted.

27 changes: 27 additions & 0 deletions include/SecondaryLoop.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SECONDARY_LOOP_H

#ifndef SECONDARY_LOOP_H
#define SECONDARY_LOOP_H

#include <MD_UISwitch.h>
#include "LedController.hpp"

#define DIN 5
#define CS 4
#define CLK 15

extern LedController<1, 1> secondaryDisplay;
extern unsigned long delaytime;

#define TXT_BUF_SIZE 128

// Variables declared as extern for access in other source files
extern volatile char secondaryScreenMode[];
extern volatile bool newMessageAvailable2;
extern volatile char newMessage2[TXT_BUF_SIZE];

void scrollGolf86On7Segment();
void showText(const char *text);
void secondaryDisplayLoop(void *parameter);

#endif // SECONDARY_LOOP_H
Loading

0 comments on commit f65be41

Please sign in to comment.