# elevator **Repository Path**: mirrors_WebReflection/elevator ## Basic Information - **Project Name**: elevator - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README A JavaScript Elevator ===================== An introduction to programming for the Internet of Things through a metaphoric code explained through [a blog posts](https://medium.com/@WebReflection/a-javascript-elevator-9b55e1d4acc8). ### Demos * [the doors](https://webreflection.github.io/elevator/the-doors/) of a lift have at least a motor and a sensor (unless it chops people that are passing through). Doors can close or open, and everything is asynchronous and cancelable (unless you want to chop people that are passing through). * [the light button](https://webreflection.github.io/elevator/the-light-button/) does exactly what a button does, but it has an extra `switch(state)` method to switch on or off its internal light. It's important to understand that pressing the button, does not necessarily mean switching on the light. Remember, an elevator is a list of hardware driven by a controller, not a set of stand-alone modules with a proper purpose. * [the elevator](https://webreflection.github.io/elevator/the-elevator/) with the most basic, queue based, controller implementation. Click as many buttons you want from the floor (left) or from the elevator (right) and see it moving. ### Requirements You need a modern browser compatible with ECMAScript 2015 modules (ESM). Chrome, Web, or Safari are right now tested and supported.