@@ -127,8 +127,24 @@ Blockly.setBoardJSON = function(info) {
127
127
for ( i in info . pins )
128
128
if ( ! ( "NO_BLOCKLY" in info . pins [ i ] . functions ) )
129
129
PINS . push ( [ info . pins [ i ] . name , info . pins [ i ] . name ] ) ;
130
-
131
-
130
+ /* Quick hack for Jolt.js, at least until we have some
131
+ other way of putting this in JSON */
132
+ if ( info . info && info . info . name == "Jolt.js" ) {
133
+ PINS . push ( [ "Q0 SDA" , "Q0.sda" ] ) ;
134
+ PINS . push ( [ "Q0 SCL" , "Q0.scl" ] ) ;
135
+ PINS . push ( [ "Q0 FET" , "Q0.fet" ] ) ;
136
+ PINS . push ( [ "Q1 SDA" , "Q1.sda" ] ) ;
137
+ PINS . push ( [ "Q1 SCL" , "Q1.scl" ] ) ;
138
+ PINS . push ( [ "Q1 FET" , "Q1.fet" ] ) ;
139
+ PINS . push ( [ "Q2 SDA" , "Q2.sda" ] ) ;
140
+ PINS . push ( [ "Q2 SCL" , "Q2.scl" ] ) ;
141
+ PINS . push ( [ "Q2 GND" , "Q2.gnd" ] ) ;
142
+ PINS . push ( [ "Q2 VCC" , "Q2.vcc" ] ) ;
143
+ PINS . push ( [ "Q3 SDA" , "Q3.sda" ] ) ;
144
+ PINS . push ( [ "Q3 SCL" , "Q3.scl" ] ) ;
145
+ PINS . push ( [ "Q3 GND" , "Q3.gnd" ] ) ;
146
+ PINS . push ( [ "Q3 VCC" , "Q3.vcc" ] ) ;
147
+ }
132
148
} ;
133
149
// ---------------------------------
134
150
0 commit comments