Pyboard Hookup Guide - SparkFun Learn
In the pyb module LED class, there is a method called intensity. When called it looks like pyb.LED.intensity([value]) where value is a number between 0-255. In this example, we will change the intensity of the LED. Go to the PYBFLASH and open main.py in a text editor. Copy the code below.