From fdb97eda09ca1968df8a919d15ebd1fe191fb57e Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Thu, 31 Aug 2017 13:48:30 -0400 Subject: Add microcontroller.cpu.temperature, for use as a simple sensor on minimal boards. (#211) * Add microcontroller.cpu, the sole instance of microcontroller.Processor. microcontroller.cpu.frequency is the clock frequency, in Hz. microcontroller.cpu.temperature is the reading from the internal temperature sensor, in Celsius. None if not available. * Squeeze firmware size by using -finline-limit. Otherwise non-Express builds were slightly too big. * Update submodules. * Fix documentation glitches --- shared-bindings/nvm/ByteArray.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'shared-bindings/nvm') diff --git a/shared-bindings/nvm/ByteArray.c b/shared-bindings/nvm/ByteArray.c index 0ba511a77..361d03c55 100644 --- a/shared-bindings/nvm/ByteArray.c +++ b/shared-bindings/nvm/ByteArray.c @@ -46,12 +46,8 @@ //| .. class:: ByteArray() //| -//| Not currently dynamically supported. Access one through `microcontroller.nvm`. +//| Not currently dynamically supported. Access the sole instance through `microcontroller.nvm`. //| -STATIC mp_obj_t nvm_bytearray_make_new(const mp_obj_type_t *type, - mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { - return mp_const_none; -} //| .. method:: __len__() //| @@ -151,7 +147,6 @@ STATIC mp_obj_t nvm_bytearray_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj const mp_obj_type_t nvm_bytearray_type = { { &mp_type_type }, .name = MP_QSTR_ByteArray, - .make_new = nvm_bytearray_make_new, .subscr = nvm_bytearray_subscr, .unary_op = nvm_bytearray_unary_op, .print = NULL, -- cgit v1.2.3