Skip to content

Commit

Permalink
Re-enable pads 9 and 10
Browse files Browse the repository at this point in the history
  • Loading branch information
islemaster committed Feb 26, 2018
1 parent b6f40cc commit 0bdbed6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/src/lib/kits/maker/PlaygroundConstants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import experiments from '../../../util/experiments';
export const N_COLOR_LEDS = 10;
export const EXTERNAL_PINS = [0, 1, 2, 3, 6, 9, 10, 12];
export const TOUCH_PINS = [0, 2, 3, 6, 12];
export const TOUCH_PINS = [0, 2, 3, 6, 9, 10, 12];
export const J5_CONSTANTS = {
INPUT: 0,
OUTPUT: 1,
Expand Down
4 changes: 3 additions & 1 deletion apps/test/unit/lib/kits/maker/CircuitPlaygroundBoardTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('CircuitPlaygroundBoard', () => {

it('initializes a set of components', () => {
return board.connect().then(() => {
expect(Object.keys(board.prewiredComponents_)).to.have.length(21);
expect(Object.keys(board.prewiredComponents_)).to.have.length(23);
expect(board.prewiredComponents_.board).to.be.a('object');
expect(board.prewiredComponents_.colorLeds).to.be.a('array');
expect(board.prewiredComponents_.led).to.be.a('object');
Expand All @@ -86,6 +86,8 @@ describe('CircuitPlaygroundBoard', () => {
expect(board.prewiredComponents_.touchPad2).to.be.a('object');
expect(board.prewiredComponents_.touchPad3).to.be.a('object');
expect(board.prewiredComponents_.touchPad6).to.be.a('object');
expect(board.prewiredComponents_.touchPad9).to.be.a('object');
expect(board.prewiredComponents_.touchPad10).to.be.a('object');
expect(board.prewiredComponents_.touchPad12).to.be.a('object');
expect(board.prewiredComponents_.INPUT).to.be.a('number');
expect(board.prewiredComponents_.OUTPUT).to.be.a('number');
Expand Down
6 changes: 4 additions & 2 deletions apps/test/unit/lib/kits/maker/PlaygroundComponentsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ describe('Circuit Playground Components', () => {
'touchPad2',
'touchPad3',
'touchPad6',
'touchPad9',
'touchPad10',
'touchPad12',
]);
});
Expand Down Expand Up @@ -613,14 +615,14 @@ describe('Circuit Playground Components', () => {
});

it('destroys everything that createCircuitPlaygroundComponents creates', () => {
expect(Object.keys(components)).to.have.length(15);
expect(Object.keys(components)).to.have.length(17);
destroyCircuitPlaygroundComponents(components);
expect(Object.keys(components)).to.have.length(0);
});

it('does not destroy components not created by createCircuitPlaygroundComponents', () => {
components.someOtherComponent = {};
expect(Object.keys(components)).to.have.length(16);
expect(Object.keys(components)).to.have.length(18);
destroyCircuitPlaygroundComponents(components);
expect(Object.keys(components)).to.have.length(1);
expect(components).to.haveOwnProperty('someOtherComponent');
Expand Down

0 comments on commit 0bdbed6

Please sign in to comment.