Skip to content

Commit faa197e

Browse files
committed
snakeAttack moved to a new repo
1 parent ac0abd5 commit faa197e

File tree

7 files changed

+10
-809
lines changed

7 files changed

+10
-809
lines changed

Grid.cpp renamed to HL1606grid.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
/*
2-
* Grid - Abstraction of lights on HL1606 LED strips
2+
* HL1606grid - Abstraction of lights on HL1606 LED strips
33
* Copyright (c) 2011, Patrick Schless
44
*/
55

6-
#include "Grid.h"
6+
#include "HL1606grid.h"
77

8-
Grid::Grid(HL1606strip *s) {
8+
HL1606grid::HL1606grid(HL1606strip *s) {
99
rows = 8;
1010
cols = 8;
1111
strip = s;
1212
}
1313

14-
void Grid::fill(uint8_t color) {
14+
void HL1606grid::fill(uint8_t color) {
1515
for (uint8_t i=0; i<rows; i++) {
1616
for (uint8_t j=0; j<cols; j++) {
1717
pixels[i][j].color = color;
1818
}
1919
}
2020
}
2121

22-
void Grid::setLEDcolor(uint8_t row, uint8_t col, uint8_t color) {
22+
void HL1606grid::setLEDcolor(uint8_t row, uint8_t col, uint8_t color) {
2323
pixels[row][col].color = color;
2424
}
2525

26-
uint8_t Grid::getLEDcolor(uint8_t row, uint8_t col) {
26+
uint8_t HL1606grid::getLEDcolor(uint8_t row, uint8_t col) {
2727
return pixels[row][col].color;
2828
}
2929

30-
void Grid::writeGrid() {
30+
void HL1606grid::writeGrid() {
3131
uint8_t colPosition;
3232

3333
for (uint8_t i=0; i<rows; i++) {
@@ -43,6 +43,6 @@ void Grid::writeGrid() {
4343
strip->writeStrip();
4444
}
4545

46-
void Grid::clear() {
46+
void HL1606grid::clear() {
4747
fill(BLACK);
4848
}

Grid.h renamed to HL1606grid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include "Pixel.h";
1111
#include "HL1606strip.h";
1212

13-
class Grid {
13+
class HL1606grid {
1414
public:
15-
Grid(HL1606strip *strip);
15+
HL1606grid(HL1606strip *strip);
1616
Pixel pixels[8][8];
1717
HL1606strip *strip;
1818
uint8_t rows;

HL1606strip.cpp.old

Lines changed: 0 additions & 331 deletions
This file was deleted.

0 commit comments

Comments
 (0)