<commit_before>=============
Basic usage
=============

Turn on a led for 1s
--------------------

::

	>>> # from time import sleep
	>>> sleep = lambda x: None
	>>> import pingo
	>>>
	>>> board = pingo.rpi.RaspberryPi()
	>>> board.pins[11]
	<DigitalPin 11>
	>>>
	>>> led_pin = board.pins[11]
	>>> led_pin.set_mode(pingo.OUTPUT)
	>>> led_pin.high()
	>>> led_pin.state
	1
	>>> sleep(1)  # 1 second
	>>> led_pin.low()
	>>> led_pin.state
	0

Builds the correct GPIO Device
--------------------

::

    >>> import pingo
    >>> board2 = pingo.rpi.RaspberryPi()
    >>> board2 = pingo.rpi.RaspberryPi()
    >>> board2 = pingo.rpi.RaspberryPi() # on 3rd all goes
    >>> pin = board2.pins[11]
    >>> board2._render_path(pin, 'direction')
    '/sys/class/gpio/gpio11/direction'
    >>> board2._render_path(pin, 'value')
    '/sys/class/gpio/gpio11/value'
	<commit_msg>working on rpi tests<commit_after>=============
Basic usage
=============

Turn on a led for 1s
--------------------

::

  >>> from time import sleep
  >>> import pingo
  >>>
  >>> board = pingo.rpi.RaspberryPi()
  >>> board.pins[11]
  <DigitalPin 11>
  >>>
  >>> led_pin = board.pins[11]
  >>> led_pin.set_mode(pingo.OUTPUT)
  >>> led_pin.high()
  >>> led_pin.state
  1
  >>> sleep(1)  # 1 second
  >>> led_pin.low()
  >>> led_pin.state
  0

Builds the correct GPIO Device
------------------------------

::

  >>> import pingo
  >>> board2 = pingo.rpi.RaspberryPi()
  >>> board2 = pingo.rpi.RaspberryPi()
  >>> board2 = pingo.rpi.RaspberryPi() # on 3rd all goes
  >>> pin = board2.pins[11]
  >>> board2._render_path(pin, 'direction')
  '/sys/class/gpio/gpio11/direction'
  >>> board2._render_path(pin, 'value')
  '/sys/class/gpio/gpio11/value'

{'fraction_non_alphanumeric': 0.25263157894736843, 'fraction_numerical': 0.028070175438596492, 'mean_word_length': 2.7439824945295404, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 128, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6059678', 'n_tokens_mistral': 664, 'n_tokens_neox': 619, 'n_words': 121}