KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
uno.js
★ 18
Open GitHub ↗
JavaScript Library for Arduino
Download README (.md)
Explore Similar Repositories
fluid-simulation-rust
:
A rewrite of my fluid simulation project entirely in Rust
kindle-download
:
kindle 电子书下载
nextjs-fcm-demo
:
No description available.
Admin-Abwesenheitsassistent
:
No description available.
monai_uf_tutorials
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
uno.js
?
Download (.md)
# uno.js - JavaScript Library for Arduino Integrate Arduino technology into JavaScript is the main concept of uno.js. This library communicate with the microcontroller that has connected to your PC and reads values from sensors and modules to do any kind of calculation in web environment. ## Installation To use uno.js properly, you have to install uno.js client program to your microcontroller first. Read [this page](https://deshan-nawanjana.github.io/uno.js/docs/#getting_started/setup_your_controller.html) of the documentation to upload now or select suitable HEX file and flash it by yourself. Once you have succesfully installed the client application, there is no requirement of installing anything to your Arduino microcontroller otherwise if you change your uno.js version. - [arduino_uno.hex](dist/client_hex/arduino_uno.hex) - [arduino_mega.hex](dist/client_hex/arduino_mega.hex) - [arduino_nano.hex](dist/client_hex/arduino_nano.hex) Then download the latest version of uno.js library using [this link](dist/uno.min.js) and attach to your web application. ```HTML <script src="path/to/file/uno.min.js"></script> ``` ## First Program Let's blink an LED using uno.js. ```JavaScript // create controller const myBoard = new UNO.Controller() // blink function const blink = async function() { // init controller await myBoard.init() // set pin mode await myBoard.pinMode(13, OUTPUT) // loop forever while(true) { // turn on led and delay await myBoard.digitalWrite(13, HIGH) await myBoard.delay(300) // turn off led and delay await myBoard.digitalWrite(13, LOW) await myBoard.delay(200) } } // click on window to start window.addEventListener('click', blink) ``` ## Documentation Read uno.js documentation to undrstand the library quickly. Each page of the documentation contains a program to test. Threfore, connect your microcontroller that has uploaded the client app and continue. - [Getting Started](https://deshan-nawanjana.github.io/uno.js/docs/#getting_started/introduction.html) - [Basics](https://deshan-nawanjana.github.io/uno.js/docs/#basics/init_loop_and_stop.html) - [Modules](https://deshan-nawanjana.github.io/uno.js/docs/#modules/accelerometer.html) - [Sensors](https://deshan-nawanjana.github.io/uno.js/docs/#sensors/ultrasonic_sensor.html) - [Tools](https://deshan-nawanjana.github.io/uno.js/docs/#tools/uploader.html) - [Utils](https://deshan-nawanjana.github.io/uno.js/docs/#utils/start_button.html) ### Developed by Deshan Nawanjana [Deshan.lk](https://deshan.lk/)  |  [LinkedIn](https://www.linkedin.com/in/deshan-nawanjana/)  |  [Facebook](https://www.facebook.com/mr.dnjs)  |  [GitHub](https://github.com/deshan-nawanjana)  |  [YouTube](https://www.youtube.com/@deshan-nawanjana)  |  [X](https://x.com/DeshanNawanjana)  |  [Instagram](https://www.instagram.com/_d.boy_/)  |  [Reddit](https://www.reddit.com/user/DeshanNawanjana/)