Merge pull request #7129 from dhalbert/limitations-doc-fix

Fix formatting of "Limitations:" in a couple of modules
This commit is contained in:
Dan Halbert 2022-10-26 15:23:37 -04:00 committed by GitHub
commit dd2811e392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -39,6 +39,9 @@
//| class AnalogOut:
//| """Output analog values (a specific voltage).
//|
//| **Limitations:** Not available on nRF, RP2040, Spresense, as there is no on-chip DAC.
//| On Espressif, available only on ESP32 and ESP32-S2; other chips do not have a DAC.
//|
//| Example usage::
//|
//| import analogio
@ -52,8 +55,6 @@
//|
//| :param ~microcontroller.Pin pin: the pin to output to
//|
//| **Limitations:** Not available on nRF, RP2040, Spresense: there is no on-chip DAC.
//| Espressif: available only on ESP32 and ESP32-S2; other chips do not have a DAC.
//| """
//| ...
STATIC mp_obj_t analogio_analogout_make_new(const mp_obj_type_t *type, mp_uint_t n_args, size_t n_kw, const mp_obj_t *args) {

View File

@ -107,7 +107,7 @@ MP_PROPERTY_GETTER(mcu_processor_reset_reason_obj,
//| Is `None` if the temperature is not available.
//|
//| **Limitations:** Not available on ESP32 or ESP32-S3. On small SAMD21 builds without external flash,
//| the reported temperature has reduced accuracy and precision, to save code space.
//| the reported temperature has reduced accuracy and precision, to save code space.
//| """
STATIC mp_obj_t mcu_processor_get_temperature(mp_obj_t self) {
float temperature = common_hal_mcu_processor_get_temperature();