This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Add your Wii Dance Dance Revolution Dance Pad Controller as an input to your home automation. | |
https://en.wikipedia.org/wiki/Dance_pad | |
For those that want an interactive RGB lights scenery, configure your homeassistant (hass.io) | |
to change your dancefloor's lighting according to the MQTT signals. Now you are doing your | |
own light show ! | |
Hardware: | |
Each dance pad input is a weight sensible resistor. I replaced the original circuit board |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
jest.mock('react-native', () => { | |
const createMockComponent = (name) => { | |
const mockedComponent = ({ children }) => ( | |
<div>{children}</div> | |
); | |
mockedComponent.displayName = name; | |
return mockedComponent; | |
} |