Revision f3552690

View differences:

main.c
74 74
}
75 75

  
76 76
void clearBuffer(){
77
	for(uint8_t i = 0; i < 90; i++){
77
	for(uint8_t i = 0; i < 135; i++){
78 78
		lines[i] = 0;
79 79
	}
80 80
}
......
86 86
	// address lines:
87 87
	DDR(ADDRESS_PORT) |= (1<<A3) | (1<<A2) | (1<<A1) | (1<<A0);
88 88
	
89
	drawLine(0,0, 15, 89);
89
	drawLine(0,0, 15, 134);
90 90
	uint8_t x1 = 0;
91 91
	uint8_t y1 = 0;
92 92
	uint8_t x2 = 15;
93
	uint8_t y2 = 89;
93
	uint8_t y2 = 134;
94 94
	while(1){
95 95
		drawEverything();
96 96
		clearBuffer();
97 97
		drawLine(x1, y1, x2, y2);
98
		if(x1 < 15 && y2 == 89){
98
		if(x1 < 15 && y2 == 134){
99 99
			x1++;
100 100
			x2--;
101 101
		}
102
		else if(y1 != 89){
102
		else if(y1 != 134){
103 103
			y1++;
104 104
			y2--;
105 105
		}
......
107 107
			x1 = 0;
108 108
			y1 = 0;
109 109
			x2 = 15;
110
			y2 = 89;
110
			y2 = 134;
111 111
		}
112 112
	}
113 113
}
......
116 116
	for(uint8_t intensity = 0; intensity < 16; intensity++){
117 117
		for(uint8_t round = 0; round < intensity; round++){
118 118
			PORT(ADDRESS_PORT) = round;
119
			for(int16_t line = 0; line < 90; line++){
119
			for(int16_t line = 0; line < 135; line++){
120 120
				printLineBasic(line, round, (1<<DATA_GREEN_PIN));
121 121
			}
122 122
			OE();
......
126 126
		}
127 127
		for(uint8_t round = intensity; round < 16; round++){
128 128
			PORT(ADDRESS_PORT) = round;
129
			for(int16_t line = 0; line < 90; line++){
129
			for(int16_t line = 0; line < 135; line++){
130 130
				printLineBasic(line, round, (1<<DATA_RED_PIN));
131 131
			}
132 132
			OE();

Also available in: Unified diff