edison-js / Edison

💡Edison can controll microcomputer with TypeScript and React💡
https://edison-js-document.vercel.app/
MIT License
45 stars 6 forks source link

Add Infrared Obstacle Avoidance #62

Open AllenShintani opened 5 months ago

AllenShintani commented 5 months ago

Supports infrared sensors. The necessary methods are read for now to prepare "on" and "off" events.

yoshihikko-kodaira commented 5 months ago

problem ・When an obstacle is brought close to the infrared sensor, the same value is output continuously. ・LED glows even when the sensor is not responding

AllenShintani commented 2 months ago

If the logic of the Input sensor is applied as it is, the same value may be output when the object is gradually brought closer from a distance. This implementation requires special logic. For this reason, the Infrared Obstacle sensor in PR should be removed. The other working files will be merged!