aboutsummaryrefslogtreecommitdiff
path: root/software/scan.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-11-26 18:13:11 +0100
committerlonkaars <loek@pipeframe.xyz>2021-11-26 18:13:11 +0100
commitf9335ba20b0e950e9881749e9bc3006eacefc305 (patch)
treebe452050ead77c8c584118cb8304d3c19948c3a6 /software/scan.h
parent0169625b253301ed24267ebfd19afb55e5121bca (diff)
added documentation comments and led map
Diffstat (limited to 'software/scan.h')
-rw-r--r--software/scan.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/software/scan.h b/software/scan.h
index 0c19763..82dccb0 100644
--- a/software/scan.h
+++ b/software/scan.h
@@ -1,13 +1,17 @@
#pragma once
+// utility
#define SCAN_HOR 0
#define SCAN_VER 1
extern unsigned char scan_direction;
extern unsigned char scan_index;
extern unsigned char scan_order[8];
+/** @brief fetch horizontal or vertical row from led_state */
unsigned char get_state_row(unsigned char row, unsigned char direction);
+/** @brief scan through the 8x8 wiring matrix and display led_state */
void scan();
+/** @brief optimize brightness by pruning empty lines */
void optimize_scan();