diff options
author | Mike Causer <mcauser@gmail.com> | 2017-10-06 01:36:48 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-10 15:22:11 +1100 |
commit | dc92f1c4ee0924cff0b33b5061622f0621e71eac (patch) | |
tree | cfe0259a78efa43e2a59e68bb737665947812983 /docs/pyboard/tutorial | |
parent | d236d0c415bc34c96e7155ab116258a026b2cda6 (diff) | |
download | micropython-dc92f1c4ee0924cff0b33b5061622f0621e71eac.tar.gz micropython-dc92f1c4ee0924cff0b33b5061622f0621e71eac.zip |
docs/pyboard/tutorial: Update now that yellow LED also supports PWM.
Diffstat (limited to 'docs/pyboard/tutorial')
-rw-r--r-- | docs/pyboard/tutorial/leds.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/pyboard/tutorial/leds.rst b/docs/pyboard/tutorial/leds.rst index 763eedf01c..6b05f5db05 100644 --- a/docs/pyboard/tutorial/leds.rst +++ b/docs/pyboard/tutorial/leds.rst @@ -60,10 +60,10 @@ One problem you might find is that if you stop the script and then start it agai for l in leds: l.off() -The Fourth Special LED ----------------------- +The Special LEDs +---------------- -The blue LED is special. As well as turning it on and off, you can control the intensity using the intensity() method. This takes a number between 0 and 255 that determines how bright it is. The following script makes the blue LED gradually brighter then turns it off again. :: +The yellow and blue LEDs are special. As well as turning them on and off, you can control their intensity using the intensity() method. This takes a number between 0 and 255 that determines how bright it is. The following script makes the blue LED gradually brighter then turns it off again. :: led = pyb.LED(4) intensity = 0 @@ -72,4 +72,4 @@ The blue LED is special. As well as turning it on and off, you can control the i led.intensity(intensity) pyb.delay(20) -You can call intensity() on the other LEDs but they can only be off or on. 0 sets them off and any other number up to 255 turns them on. +You can call intensity() on LEDs 1 and 2 but they can only be off or on. 0 sets them off and any other number up to 255 turns them on. |