From f9335ba20b0e950e9881749e9bc3006eacefc305 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 26 Nov 2021 18:13:11 +0100 Subject: added documentation comments and led map --- software/scan.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'software/scan.h') 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(); -- cgit v1.2.3