How can I make a extenstion that support serialport devices to scratch?
See original GitHub issueExpected Behavior
If I want to use scratch for my own Harware devices which has serialport on it ,How could I write a javascript extention that support it?
Actual Behavior
Actually I try to use npm install serialport ,and I write a .js file that opens a serialpor, But I can just run this file in node.js. How could I add this to scratch-vm or scratch-gui?
Steps to Reproduce
If you want to try this , you can run :
sudo npm install -g serialport
write a file : serialport.js
const SerialPort = require('serialport')
Operating System and Browser
Ubuntu 16.04 Google Chorm 71.0.3578.98
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
Output to serial or other. - Discuss Scratch
If you are willing to write your own interface to link to this serial port, you could then connect the interface through Scratch's...
Read more >Scratch Arduino Extension - khanning.com
Select your serial port from the Tools > Port menu. ... Download and install the Scratch Extensions Browser Plugin for "other web browsers"....
Read more >ScratchX
With Experimental Extensions, you can create Scratch projects that connect with external hardware (such as electronic devices and robotics) and online ...
Read more >Arduino BLE with Scratch 3.0 - Doojin Kang - Medium
It can connect BT/BLE devices with the help of Scratch Link program. ... Please refer the following about how to make scratch 3.0...
Read more >Getting started with the Web Serial API - Google Codelabs
In this codelab, you'll build a web page that uses the Web Serial API to ... and transform streams to communicate with serial...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I write a serial extension recently,it can open a serial port ,send messages,receive messages. But it still has some bugs to fix.
@XueYuSky , here you can find my actually implementation. Please take in mind, I’m not an expert programmer (especially with Javascript), I’m sure there’s a better method! For example, doing all the jobs in the same extension script ‘index.js’ so that it is not necessary to start the wsServer.js script manually.
https://github.com/cotestatnt/arduino-plus-scratch3