2 – Utiliser la DEL RGB de la carte Webduino smart

by | Apr 22, 2017 | Internet des objets

The Webduino Smart development board has a built-in micro RGB (red, green and blue) LED (common cathode).

The default pin numbers for red, green, and blue are 15, 12, and 13 respectively.
Therefore, Webduino Smart is able to create lights with various colors directly.

 

Instruction of Webduino Blockly

To start blockly go to blockly.webduino.io

 

 

First, add a “Smart” block from the “Board” menu and select “WebSocket”. ( the web address of the webduino blockly must begin with http and not https )
Then, key in the IP address of development board. (please refer to webduino introduction and setup  for the IP address)

Add a RGB LED (common cathode) block from the “Components” menu.
Set the pin numbers to 15 for red, 12 for green, and 13 for blue.

Under the Web Demo menu add “Click Button, Do” blocks to the stack. Then connect “RGBLED Set Color” blocks to those.
Select different colors in the blocks for the buttons 1 through 5.

 

 

0 Comments