Skip to content

Commit

Permalink
Merge pull request #87 from AllenShintani/master
Browse files Browse the repository at this point in the history
version up to 0.1.36
  • Loading branch information
AllenShintani authored Apr 23, 2024
2 parents d2ed3f6 + e073582 commit 5ef21bb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edison",
"version": "0.1.35",
"version": "0.1.36",
"description": "This package can control Arduino with TypeScript!",
"main": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/declarative/components/input/PIRMotionSensor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type PIRMotionSensorProps = {
children: React.ReactNode
}

export const PIRMotionSensor: React.FC<PIRMotionSensorProps> = ({
export const PIRMotion: React.FC<PIRMotionSensorProps> = ({
pin,
triggered,
untriggered,
Expand Down
6 changes: 3 additions & 3 deletions src/declarative/examples/DigiTaltiltSensor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { useState } from 'react'
import { Board } from '../utils/Board'
import { render } from '../rendere/render'
import { Led } from '../components/output/Led'
import { DigitalTiltSensor } from '../../declarative/components/input/DigitalTiltSensor'
import { DigitalTilt } from '../../declarative/components/input/DigitalTiltSensor'

Check failure on line 6 in src/declarative/examples/DigiTaltiltSensor.tsx

View workflow job for this annotation

GitHub Actions / Test

Module '"../../declarative/components/input/DigitalTiltSensor"' has no exported member 'DigitalTilt'.

const App: React.FC = () => {
const [isOn, setIsOn] = useState(false)

return (
<Board port={'/dev/ttyUSB0'}>
<DigitalTiltSensor
<DigitalTilt
pin={8}
triggered={() => {
setIsOn(true)
Expand All @@ -23,7 +23,7 @@ const App: React.FC = () => {
pin={13}
isOn={isOn}
/>
</DigitalTiltSensor>
</DigitalTilt>
</Board>
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export { Buzzer } from './declarative/components/output/Buzzer'
export { Button } from './declarative/components/input/Button'
export { Collision } from './declarative/components/input/Collision'
export { HallEffective } from './declarative/components/input/HallEffectSensor'
export { DigitalTiltSensor } from './declarative/components/input/DigitalTiltSensor'
export { PIRMotionSensor } from './declarative/components/input/PIRMotionSensor'
export { DigitalTilt } from './declarative/components/input/DigitalTiltSensor'

Check failure on line 13 in src/index.ts

View workflow job for this annotation

GitHub Actions / Test

Module '"./declarative/components/input/DigitalTiltSensor"' has no exported member 'DigitalTilt'.
export { PIRMotion } from './declarative/components/input/PIRMotionSensor'
export { Input } from './declarative/components/input/Input'
export { Servo } from './declarative/components/servo/Servo'
export { PhotoInterrupter } from './declarative/components/input/PhotoInterrupter'
Expand Down

0 comments on commit 5ef21bb

Please sign in to comment.