Skip to content

knandersen/friendly-lego-ble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

https://knandersen.github.io/friendly-lego-ble/ (Make sure you have the latest version of Scratch Link running)

Turn on any LEGO Hub featuring BLE 4.0+ (except WeDo 2.0). Your hub should be detected and connected to automatically.

How to use

  1. Run the project using the commands described in 'Available Scripts' below
  2. Open the website http://localhost:3000
  3. Make sure you have the latest version of Scratch Link installed and running
  4. Turn on any LEGO Hub supporting BLE (except WeDo 2.0)
  5. The app should connect to the hub automatically

The BLE stuff happens in https://github.com/knandersen/friendly-lego-ble/blob/master/src/Connector.js

Documentation

All the BLE commands and enums are based on the official LEGO documentation available at https://lego.github.io/lego-ble-wireless-protocol-docs

This project was bootstrapped with Create React App.

How to contribute

This is one of my first repos published to Github. I'm still learning the workflows and ways of doing this, so I'd appreciate any comments/advice for how to make this project as usable for others as possible. In advance, thanks.

About

Small React app showing how to use scratch-vm (and scratch-link) to connect to LEGO BLE Hubs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published