Created
July 15, 2015 12:06
-
-
Save iamdustan/14ba3b907d92c5f0d027 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** @flow */ | |
| import React from '../ReactHardware'; | |
| import Board from '../components/Board'; | |
| const pinMapping = { | |
| 'A0': 14, | |
| 'A1': 15, | |
| 'A2': 16, | |
| 'A3': 17, | |
| 'A4': 18, | |
| 'A5': 19, | |
| }; | |
| class ArduinoUno extends Board { | |
| render(): ReactElement { | |
| return ( | |
| <Board | |
| {...this.props} | |
| pinMapping={pinMapping} | |
| /> | |
| ); | |
| } | |
| }; | |
| ArduinoUno.defaultProps = {pinMapping}; | |
| export default ArduinoUno; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment