Skip to content

Commit

Permalink
Merge pull request #74 from edison-js/AllenShintani-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
AllenShintani authored Feb 28, 2024
2 parents 3ec760d + 06a12f9 commit 9f94f92
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@ yarn add edison
## Getting Started

```.ts
import { attachLed, board, SerialPort } from 'edison'

board.on('ready', (port: SerialPort) => {
const led = attachLed(port, 12)
led.blink(500)
})
import { Board, Button, Led, render } from "edison"
import React from "react"

const App: React.FC = () => {
return (
<Board>
<Led pin={13} blink={500} />
</Board>
)
}

render(<App />)
```

## Contributing
Expand Down

0 comments on commit 9f94f92

Please sign in to comment.