Database : evolving
This commit is contained in:
parent
f640cdf5f4
commit
0706b8e51b
|
@ -3,7 +3,7 @@
|
||||||
-- http://www.phpmyadmin.net
|
-- http://www.phpmyadmin.net
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- Host: localhost
|
||||||
-- Generation Time: Jul 19, 2016 at 11:26 AM
|
-- Generation Time: Jul 19, 2016 at 03:00 PM
|
||||||
-- Server version: 5.7.12-0ubuntu1.1
|
-- Server version: 5.7.12-0ubuntu1.1
|
||||||
-- PHP Version: 7.0.4-7ubuntu2.1
|
-- PHP Version: 7.0.4-7ubuntu2.1
|
||||||
|
|
||||||
|
@ -391,9 +391,9 @@ INSERT INTO `state` (`id_state`, `id_pin_merge`, `state`, `value`) VALUES
|
||||||
(11, 2, 'R', 0),
|
(11, 2, 'R', 0),
|
||||||
(12, 3, 'R', 0),
|
(12, 3, 'R', 0),
|
||||||
(13, 4, '0', 0),
|
(13, 4, '0', 0),
|
||||||
(14, 4, '1', 1),
|
(14, 4, '1', 255),
|
||||||
(15, 5, '0', 0),
|
(15, 5, '0', 0),
|
||||||
(16, 5, '1', 1);
|
(16, 5, '1', 255);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -296,10 +296,8 @@
|
||||||
var values = CHIPS[c].states[STATES[s].chips[c]];
|
var values = CHIPS[c].states[STATES[s].chips[c]];
|
||||||
|
|
||||||
/* (6) On applique les valeurs */
|
/* (6) On applique les valeurs */
|
||||||
for( var p in pins ){
|
for( var p in pins )
|
||||||
board.set( parseInt(pins[p]), parseInt(values[p]) );
|
board.set( parseInt(pins[p]), parseInt(values[p]) );
|
||||||
console.log('board.set(', parseInt(pins[p]), ',', parseInt(values[p]), ');');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue