Skip to content

LeMaker/LN_Digital_Scratch_Handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LN_Digital_Scratch_Handler

Allows Scratch to control LN Digital products through MESH.

Install

Dowdload the source code package from Lemaker Github, unzip::

$ cd LN_Digital_Scratch_Handler

Manual Install LN_Digital_Scratch_Handler (for Python 3) with the following command::

$ sudo python3 setup.py install

Manual Install LN_Digital_Scratch_Handler (for Python 2) with the following command::

$ sudo python setup.py install

Use

First you must enable Mesh in Scratch.

The shift-click the Share menu-item and select Host Mesh.

To save the modified scratch virtual image in local, you have to run Scratch with::

$ sudo scratch

Now run the Scratch Handler with the Desktop icon::LN-Digital-Scratch-Handler, or

$ cd /usr/local/bin
$ sudo LN-Digital-Scratch-Handler

Scratch

The handler will make available inputs 1 through 8 via the sensor values. If you want to control LN Digital's outputs you must create a variable for each pin named like so:

LN-output1
LN-output2
LN-output3
LN-output4
LN-output5
LN-output6
LN-output7
LN-output8

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages