@@ -131,7 +131,7 @@ def detect_taps(self):
131
131
"""Configure what type of tap is detected by ``cpx.tapped``. Use ``1`` for single-tap
132
132
detection and ``2`` for double-tap detection. This does nothing without ``cpx.tapped``.
133
133
134
- .. image :: /_static/accelerometer.jpg
134
+ .. image :: /docs/ _static/accelerometer.jpg
135
135
:alt: Accelerometer
136
136
137
137
.. code-block:: python
@@ -160,7 +160,7 @@ def detect_taps(self, value):
160
160
def tapped (self ):
161
161
"""True once after a detecting a tap. Requires ``cpx.detect_taps``.
162
162
163
- .. image :: /_static/accelerometer.jpg
163
+ .. image :: /docs/ _static/accelerometer.jpg
164
164
:alt: Accelerometer
165
165
166
166
Tap the CPX once for a single-tap, or quickly tap twice for a double-tap.
@@ -215,7 +215,7 @@ def tapped(self):
215
215
def acceleration (self ):
216
216
"""Obtain data from the x, y and z axes.
217
217
218
- .. image :: /_static/accelerometer.jpg
218
+ .. image :: /docs/ _static/accelerometer.jpg
219
219
:alt: Accelerometer
220
220
221
221
This example prints the values. Try moving the board to see how the
@@ -236,7 +236,7 @@ def shake(self, shake_threshold=30):
236
236
237
237
:param int shake_threshold: The threshold shake must exceed to return true (Default: 30)
238
238
239
- .. image :: /_static/accelerometer.jpg
239
+ .. image :: /docs/ _static/accelerometer.jpg
240
240
:alt: Accelerometer
241
241
242
242
.. code-block:: python
@@ -271,7 +271,7 @@ def shake(self, shake_threshold=30):
271
271
def touch_A1 (self ): # pylint: disable=invalid-name
272
272
"""Detect touch on capacitive touch pad A1.
273
273
274
- .. image :: /_static/capacitive_touch_pad_A1.jpg
274
+ .. image :: /docs/ _static/capacitive_touch_pad_A1.jpg
275
275
:alt: Capacitive touch pad A1
276
276
277
277
.. code-block:: python
@@ -291,7 +291,7 @@ def touch_A1(self): # pylint: disable=invalid-name
291
291
def touch_A2 (self ): # pylint: disable=invalid-name
292
292
"""Detect touch on capacitive touch pad A2.
293
293
294
- .. image :: /_static/capacitive_touch_pad_A2.jpg
294
+ .. image :: /docs/ _static/capacitive_touch_pad_A2.jpg
295
295
:alt: Capacitive touch pad A2
296
296
297
297
.. code-block:: python
@@ -311,7 +311,7 @@ def touch_A2(self): # pylint: disable=invalid-name
311
311
def touch_A3 (self ): # pylint: disable=invalid-name
312
312
"""Detect touch on capacitive touch pad A3.
313
313
314
- .. image :: /_static/capacitive_touch_pad_A3.jpg
314
+ .. image :: /docs/ _static/capacitive_touch_pad_A3.jpg
315
315
:alt: Capacitive touch pad A3
316
316
317
317
.. code-block:: python
@@ -331,7 +331,7 @@ def touch_A3(self): # pylint: disable=invalid-name
331
331
def touch_A4 (self ): # pylint: disable=invalid-name
332
332
"""Detect touch on capacitive touch pad A4.
333
333
334
- .. image :: /_static/capacitive_touch_pad_A4.jpg
334
+ .. image :: /docs/ _static/capacitive_touch_pad_A4.jpg
335
335
:alt: Capacitive touch pad A4
336
336
337
337
.. code-block:: python
@@ -351,7 +351,7 @@ def touch_A4(self): # pylint: disable=invalid-name
351
351
def touch_A5 (self ): # pylint: disable=invalid-name
352
352
"""Detect touch on capacitive touch pad A5.
353
353
354
- .. image :: /_static/capacitive_touch_pad_A5.jpg
354
+ .. image :: /docs/ _static/capacitive_touch_pad_A5.jpg
355
355
:alt: Capacitive touch pad A5
356
356
357
357
.. code-block:: python
@@ -371,7 +371,7 @@ def touch_A5(self): # pylint: disable=invalid-name
371
371
def touch_A6 (self ): # pylint: disable=invalid-name
372
372
"""Detect touch on capacitive touch pad A6.
373
373
374
- .. image :: /_static/capacitive_touch_pad_A6.jpg
374
+ .. image :: /docs/ _static/capacitive_touch_pad_A6.jpg
375
375
:alt: Capacitive touch pad A6
376
376
377
377
.. code-block:: python
@@ -391,7 +391,7 @@ def touch_A6(self): # pylint: disable=invalid-name
391
391
def touch_A7 (self ): # pylint: disable=invalid-name
392
392
"""Detect touch on capacitive touch pad A7.
393
393
394
- .. image :: /_static/capacitive_touch_pad_A7.jpg
394
+ .. image :: /docs/ _static/capacitive_touch_pad_A7.jpg
395
395
:alt: Capacitive touch pad A7
396
396
397
397
.. code-block:: python
@@ -413,7 +413,7 @@ def adjust_touch_threshold(self, adjustment):
413
413
414
414
:param int adjustment: The desired threshold increase
415
415
416
- .. image :: /_static/capacitive_touch_pads.jpg
416
+ .. image :: /docs/ _static/capacitive_touch_pads.jpg
417
417
:alt: Capacitive touch pads
418
418
419
419
.. code-block:: python
@@ -443,7 +443,7 @@ def pixels(self):
443
443
444
444
See `neopixel.NeoPixel` for more info.
445
445
446
- .. image :: /_static/neopixel_numbering.jpg
446
+ .. image :: /docs/ _static/neopixel_numbering.jpg
447
447
:alt: NeoPixel order diagram
448
448
449
449
Here is an example that sets the first pixel green and the second red.
@@ -466,7 +466,7 @@ def pixels(self):
466
466
def button_a (self ):
467
467
"""``True`` when Button A is pressed. ``False`` if not.
468
468
469
- .. image :: /_static/button_a.jpg
469
+ .. image :: /docs/ _static/button_a.jpg
470
470
:alt: Button A
471
471
472
472
.. code-block:: python
@@ -483,7 +483,7 @@ def button_a(self):
483
483
def button_b (self ):
484
484
"""``True`` when Button B is pressed. ``False`` if not.
485
485
486
- .. image :: /_static/button_b.jpg
486
+ .. image :: /docs/ _static/button_b.jpg
487
487
:alt: Button B
488
488
489
489
.. code-block:: python
@@ -502,7 +502,7 @@ def switch(self):
502
502
``True`` when the switch is to the left next to the music notes.
503
503
``False`` when it is to the right towards the ear.
504
504
505
- .. image :: .. /_static/slide_switch.jpg
505
+ .. image :: /docs /_static/slide_switch.jpg
506
506
:alt: Slide switch
507
507
508
508
.. code-block:: python
@@ -520,7 +520,7 @@ def switch(self):
520
520
def temperature (self ):
521
521
"""The temperature of the CircuitPlayground in Celsius.
522
522
523
- .. image :: /_static/thermistor.jpg
523
+ .. image :: /docs/ _static/thermistor.jpg
524
524
:alt: Temperature sensor
525
525
526
526
Converting this to Farenheit is easy!
@@ -543,7 +543,7 @@ def temperature(self):
543
543
def light (self ):
544
544
"""The brightness of the CircuitPlayground in approximate Lux.
545
545
546
- .. image :: /_static/light_sensor.jpg
546
+ .. image :: /docs/ _static/light_sensor.jpg
547
547
:alt: Light sensor
548
548
549
549
Try covering the sensor next to the eye to see it change.
@@ -563,7 +563,7 @@ def light(self):
563
563
def red_led (self ):
564
564
"""The red led next to the USB plug marked D13.
565
565
566
- .. image :: /_static/red_led.jpg
566
+ .. image :: /docs/ _static/red_led.jpg
567
567
:alt: D13 LED
568
568
569
569
.. code-block:: python
@@ -604,7 +604,7 @@ def play_tone(self, frequency, duration):
604
604
:param int frequency: The frequency of the tone in Hz
605
605
:param float duration: The duration of the tone in seconds
606
606
607
- .. image :: /_static/speaker.jpg
607
+ .. image :: /docs/ _static/speaker.jpg
608
608
:alt: Onboard speaker
609
609
610
610
.. code-block:: python
@@ -624,7 +624,7 @@ def start_tone(self, frequency):
624
624
625
625
:param int frequency: The frequency of the tone in Hz
626
626
627
- .. image :: /_static/speaker.jpg
627
+ .. image :: /docs/ _static/speaker.jpg
628
628
:alt: Onboard speaker
629
629
630
630
.. code-block:: python
@@ -649,7 +649,7 @@ def start_tone(self, frequency):
649
649
def stop_tone (self ):
650
650
""" Use with start_tone to stop the tone produced.
651
651
652
- .. image :: /_static/speaker.jpg
652
+ .. image :: /docs/ _static/speaker.jpg
653
653
:alt: Onboard speaker
654
654
655
655
.. code-block:: python
@@ -674,7 +674,7 @@ def play_file(self, file_name):
674
674
675
675
:param file_name: The name of your .wav file in quotation marks including .wav
676
676
677
- .. image :: /_static/speaker.jpg
677
+ .. image :: /docs/ _static/speaker.jpg
678
678
:alt: Onboard speaker
679
679
680
680
.. code-block:: python
0 commit comments