top of page

Switches and RGB LED

Updated: Feb 26, 2022

In this tutorial, we are going to see how to use switches and RGB LED. There are 4 switches and 1 RGB LED on Nirmiti shield.



Blocks we are going to use


1. Switch

In this block we need to select the switch name. There are 4 switches S1, S2, S3 and S4. It gives 1 if button is pressed and gives 0 if unpressed.


2. RGB LED with color selector

RGB LED block
Color selector










In above block , we can select the color and brightness .


Example


Output on board
switches_and_RGB_LED
.txt
Download TXT • 2KB





14 views0 comments

Recent Posts

See All
Post: Blog2_Post
bottom of page