Merge pull request #12 from synthead/include-headers-in-cpp-files

Include headers in led_blaster.cpp and notebook_adapter.cpp
This commit is contained in:
Maxwell Pray
2023-02-21 05:01:17 -08:00
committed by GitHub
2 changed files with 9 additions and 5 deletions
+7 -5
View File
@@ -8,10 +8,17 @@
#include <Arduino.h>
#include "led_blaster.h"
namespace LedBlaster {
uint16_t led_on_ms;
uint16_t led_off_ms;
void setup() {
pinMode(LED_PIN, OUTPUT);
enable_fast_mode(false);
}
void enable_fast_mode(bool fast_mode_enabled) {
if (fast_mode_enabled) {
led_on_ms = LED_ON_MS_FAST;
@@ -22,11 +29,6 @@ namespace LedBlaster {
}
}
void setup() {
pinMode(LED_PIN, OUTPUT);
enable_fast_mode(false);
}
void emit_0() {
digitalWrite(LED_PIN, HIGH);
delayMicroseconds(led_on_ms);
+2
View File
@@ -6,7 +6,9 @@
#define DATA_MODE_TIMEOUT_MS 1000
#include <Arduino.h>
#include "led_blaster.h"
#include "notebook_adapter.h"
namespace NotebookAdapter {
unsigned long last_data_ms = 0;