Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MinoruInachi committed May 1, 2019
2 parents 457e09f + a92ca9b commit 6707f5b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/audio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Using audio
===========

You will need a sound source, as input to the ``play`` function. You can generate your own, like in
``examples/waveforms.py`` or you can use the sound sources provided by modules like ``synth``.
``examples/waveforms.py``.


Technical Details
Expand All @@ -52,7 +52,7 @@ Technical Details
You don't need to understand this section to use the ``audio`` module.
It is just here in case you wanted to know how it works.

The ``audio`` module consumes samples at 7812.5 kHz, and uses linear interpolation to
The ``audio`` module consumes samples at 7812.5 Hz, and uses linear interpolation to
output a PWM signal at 32.5 kHz, which gives tolerable sound quality.

The function ``play`` fully copies all data from each ``AudioFrame`` before it
Expand Down
3 changes: 0 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ If you're a new programmer, teacher or unsure where to start, begin with the tut

.. image:: comic.png

To get involved with the community subscribe to the microbit@python.org
mailing list (https://mail.python.org/mailman/listinfo/microbit).

.. note::

This project is under active development. Please help other
Expand Down
10 changes: 5 additions & 5 deletions docs/pin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@ module:``microbit.pin0`` - ``microbit.pin20``.
+-----+---------+----------+
| 5 | Digital | Button A |
+-----+---------+----------+
| 6 | Digital | Row 2 |
| 6 | Digital | Column 9 |
+-----+---------+----------+
| 7 | Digital | Row 1 |
| 7 | Digital | Column 8 |
+-----+---------+----------+
| 8 | Digital | |
+-----+---------+----------+
| 9 | Digital | Row 3 |
| 9 | Digital | Column 7 |
+-----+---------+----------+
| 10 | Analog | Column 3 |
+-----+---------+----------+
| 11 | Digital | Button B |
+-----+---------+----------+
| 12 | Digital | |
+-----+---------+----------+
| 13 | Digital | SPI MOSI |
| 13 | Digital | SPI SCK |
+-----+---------+----------+
| 14 | Digital | SPI MISO |
+-----+---------+----------+
| 15 | Digital | SPI SCK |
| 15 | Digital | SPI MOSI |
+-----+---------+----------+
| 16 | Digital | |
+-----+---------+----------+
Expand Down
1 change: 0 additions & 1 deletion source/microbit/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "microbit/memory.h"
#include "microbit/filesystem.h"
#include "microbit/microbitdal.h"
#include "_newlib_version.h"
#include "MicroBitButton.h"

// Global instances of the mbed/DAL components that we use
Expand Down
2 changes: 1 addition & 1 deletion source/microbit/microbitdisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ microbit_display_obj_t microbit_display_obj = {

void microbit_display_init(void) {
// Set pins as output.
nrf_gpio_range_cfg_output(MIN_COLUMN_PIN, MIN_COLUMN_PIN + COLUMN_COUNT + ROW_COUNT);
nrf_gpio_range_cfg_output(MIN_COLUMN_PIN, MIN_COLUMN_PIN + COLUMN_COUNT + ROW_COUNT - 1);
}

}

0 comments on commit 6707f5b

Please sign in to comment.