aboutsummaryrefslogtreecommitdiff
path: root/software/util.ino
blob: ef680c4015815e474977bfaef45411c5235bfcc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifdef DEBUG
#include "software.h"

void print_binary_number(unsigned char data) {
	for(int i = 7; i >= 0; i--) Serial.print((data & (1 << i)) > 0, DEC);
}

void print_led_state() {
	for(int row = 0; row < 8; row++) {
		for(int col = 0; col < 8; col++) {
			Serial.print(led_state[row * 8 + col], DEC);
			Serial.print(" ");
		}
		Serial.print("\n\r");
	}
}

#endif