3
3
// ** **
4
4
// ** Arduino DMX-512 Tester Controller **
5
5
// ** **
6
- // ** - Firmware v0.4 **
6
+ // ** - Firmware v0.5 **
7
7
// ** - Hardware v0.0 - v0.2 **
8
8
// ** **
9
9
// ** - Compilado en Arduino IDE v1.0.6 **
@@ -178,7 +178,7 @@ void Back_Light_En()
178
178
void GUI_About ()
179
179
{
180
180
byte Firm_Ver_Ent = 0 ;
181
- byte Firm_Ver_Dec = 4 ;
181
+ byte Firm_Ver_Dec = 5 ;
182
182
byte Hard_Ver_Ent = 0 ;
183
183
byte Hard_Ver_Dec = 0 ;
184
184
byte ID = 20 ;
@@ -294,6 +294,7 @@ void GUI_Control_Matrix()
294
294
{
295
295
Num_Row_Pos = 0 ;
296
296
Num_Col_Pos = 13 ;
297
+ Num_Val = Inicial; // para dejar el numero que estaba si no se cambia
297
298
Numerico_Calc (0 );
298
299
if (Num_Val > 498 ) // limite de matriz
299
300
{
@@ -304,26 +305,28 @@ void GUI_Control_Matrix()
304
305
Num_Val = 1 ;
305
306
}
306
307
Inicial = Num_Val;
307
- goto inicio ;
308
+ goto Banco ;
308
309
}
309
310
// Banco Final
310
311
if (LCD_Col_Pos == 16 && LCD_Row_Pos == 0 )
311
312
{
312
313
Num_Row_Pos = 0 ;
313
314
Num_Col_Pos = 17 ;
315
+ if (Inicial == 1 )
316
+ Num_Val = 15 ;
317
+ else
318
+ Num_Val = Inicial - 14 ; // para dejar el numero que estaba si no se cambia
314
319
Numerico_Calc (0 );
315
- if (Num_Val > 512 ) // limite de matriz
320
+ if (Num_Val > 512 ) // limite de matriz
316
321
{
317
322
Inicial = 498 ;
318
- goto inicio;
319
323
}
320
- if (Num_Val < 15 ) // limite de matriz
324
+ if (Num_Val < 15 ) // limite de matriz
321
325
{
322
326
Inicial = 1 ;
323
- goto inicio;
324
327
}
325
328
Inicial = Num_Val - 14 ;
326
- goto inicio ;
329
+ goto Banco ;
327
330
}
328
331
// posicion 1
329
332
if (LCD_Col_Pos == 0 && LCD_Row_Pos == 1 )
@@ -418,6 +421,7 @@ void GUI_Control_Matrix()
418
421
Salida_DMX:
419
422
Num_Row_Pos = LCD_Row_Pos;
420
423
Num_Col_Pos = LCD_Col_Pos + 1 ;
424
+ Num_Val = DMX_Values[Canal_Actual]; // para dejar el numero que estaba si no se cambia
421
425
Numerico_Calc (1 );
422
426
if (Num_Val == 612 ) // ubicar
423
427
{
@@ -1015,7 +1019,6 @@ void GUI_Config()
1015
1019
Num_Val = 255 ;
1016
1020
Numerico_Write (255 , 16 , 2 );
1017
1021
}
1018
- EEPROM.write (513 , Num_Val); // guardar valor nuevo
1019
1022
analogWrite (Back_Light_PWM, Num_Val);
1020
1023
if (Num_Val == 0 )
1021
1024
{
@@ -1061,7 +1064,7 @@ void GUI_Config()
1061
1064
1062
1065
void GUI_Control_Multiply ()
1063
1066
{
1064
- int First_Channel = 1 ;
1067
+ int First_Channel = 1 ;
1065
1068
long Multiply = 0 ;
1066
1069
long Quantity = 0 ;
1067
1070
int Value = 255 ;
@@ -1153,6 +1156,7 @@ void GUI_Control_Multiply()
1153
1156
{
1154
1157
Num_Row_Pos = 1 ;
1155
1158
Num_Col_Pos = 9 ;
1159
+ Num_Val = First_Channel; // para dejar el numero que estaba si no se cambia
1156
1160
Numerico_Calc (0 );
1157
1161
First_Channel = Num_Val;
1158
1162
if (First_Channel == 0 )
@@ -1171,6 +1175,7 @@ void GUI_Control_Multiply()
1171
1175
{
1172
1176
Num_Row_Pos = 2 ;
1173
1177
Num_Col_Pos = 9 ;
1178
+ Num_Val = Multiply; // para dejar el numero que estaba si no se cambia
1174
1179
Numerico_Calc (0 );
1175
1180
Multiply = Num_Val;
1176
1181
if (Multiply == 0 )
@@ -1189,6 +1194,7 @@ void GUI_Control_Multiply()
1189
1194
{
1190
1195
Num_Row_Pos = 3 ;
1191
1196
Num_Col_Pos = 9 ;
1197
+ Num_Val = Quantity; // para dejar el numero que estaba si no se cambia
1192
1198
Numerico_Calc (0 );
1193
1199
Quantity = Num_Val;
1194
1200
if (Quantity == 0 )
@@ -1207,6 +1213,7 @@ void GUI_Control_Multiply()
1207
1213
{
1208
1214
Num_Row_Pos = 0 ;
1209
1215
Num_Col_Pos = 9 ;
1216
+ Num_Val = Value; // para dejar el numero que estaba si no se cambia
1210
1217
Numerico_Calc (1 );
1211
1218
Value = Num_Val;
1212
1219
if (Value > 255 )
@@ -1310,6 +1317,7 @@ void GUI_Control_Chaser()
1310
1317
{
1311
1318
Num_Row_Pos = 1 ;
1312
1319
Num_Col_Pos = 9 ;
1320
+ Num_Val = Delay; // para dejar el numero que estaba si no se cambia
1313
1321
Numerico_Calc (0 );
1314
1322
Delay = Num_Val;
1315
1323
}
@@ -1318,6 +1326,7 @@ void GUI_Control_Chaser()
1318
1326
{
1319
1327
Num_Row_Pos = 2 ;
1320
1328
Num_Col_Pos = 9 ;
1329
+ Num_Val = First; // para dejar el numero que estaba si no se cambia
1321
1330
Numerico_Calc (0 );
1322
1331
First = Num_Val;
1323
1332
if (First == 0 )
@@ -1336,6 +1345,7 @@ void GUI_Control_Chaser()
1336
1345
{
1337
1346
Num_Row_Pos = 3 ;
1338
1347
Num_Col_Pos = 9 ;
1348
+ Num_Val = Final; // para dejar el numero que estaba si no se cambia
1339
1349
Numerico_Calc (0 );
1340
1350
Final = Num_Val;
1341
1351
if (Final == 0 )
@@ -1409,6 +1419,7 @@ void GUI_Control_Unit()
1409
1419
Numerico_Write (Canal_Actual, 9 , 2 );
1410
1420
Num_Row_Pos = 2 ;
1411
1421
Num_Col_Pos = 9 ;
1422
+ Num_Val = Canal_Actual; // para dejar el numero que estaba si no se cambia
1412
1423
Numerico_Calc (0 );
1413
1424
if (Num_Val > 512 )
1414
1425
{
@@ -1429,8 +1440,9 @@ void GUI_Control_Unit()
1429
1440
{
1430
1441
Num_Row_Pos = 3 ;
1431
1442
Num_Col_Pos = 9 ;
1443
+ Num_Val = DMX_Values[Canal_Actual]; // para dejar el numero que estaba si no se cambia
1432
1444
Numerico_Calc (1 );
1433
- if (Num_Val == 612 ) // ubicar
1445
+ if (Num_Val == 612 ) // ubicar
1434
1446
{
1435
1447
Ubicar ();
1436
1448
}
@@ -1485,7 +1497,7 @@ void Numerico_Calc(byte value)
1485
1497
lcd.setCursor (Num_Col_Pos, Num_Row_Pos);
1486
1498
lcd.print (" ___" );
1487
1499
lcd.blink (); // mostrar cursor
1488
- Num_Val = 0 ;
1500
+ // Num_Val = 0;
1489
1501
Num_Col_Pos = Num_Col_Pos + 2 ;
1490
1502
lcd.setCursor (Num_Col_Pos, Num_Row_Pos);
1491
1503
// primer numero
0 commit comments