Search found 68 matches

by hlovatt
Thu Oct 08, 2020 11:25 pm
Forum: Development of MicroPython
Topic: Doc change pull requests languishing
Replies: 4
Views: 3114

Doc change pull requests languishing

Hi Core Team, I have a number of minor Doc change pull requests: https://github.com/micropython/micropython/pull/6387 https://github.com/micropython/micropython/pull/6386 https://github.com/micropython/micropython/pull/6352 https://github.com/micropython/micropython/pull/6351 https://github.com/micr...
by hlovatt
Sun Aug 30, 2020 5:32 am
Forum: General Discussion and Questions
Topic: Could not import 'btree' in MicroPython 1.9.4
Replies: 9
Views: 5970

Re: Could not import 'btree' in MicroPython 1.9.4

Thanks. Have issued pull request for documentation noting availability.
by hlovatt
Fri Aug 28, 2020 7:40 am
Forum: General Discussion and Questions
Topic: Could not import 'btree' in MicroPython 1.9.4
Replies: 9
Views: 5970

Re: Could not import 'btree' in MicroPython 1.9.4

The docs don't mention that btree is not normally included in a build. Should the docs say btree not included or should the build include btree?
by hlovatt
Tue Aug 25, 2020 1:29 am
Forum: Development of MicroPython
Topic: Typesheds
Replies: 15
Views: 9304

Re: Typesheds

Mote typesheds, LCD160CR and machine, at https://github.com/hlovatt/PyBoardTypeshed. Also the README contains:
  1. How the typesheds perform in PyCharm.
  2. How to add the typesheds to PyCharm.
by hlovatt
Mon Aug 10, 2020 5:57 am
Forum: Development of MicroPython
Topic: machine constants
Replies: 5
Views: 3236

Re: machine constants

@pythoncoder,

Thanks.

I thought machine was meant to be device independent?

Have I misunderstood?
by hlovatt
Sun Aug 09, 2020 5:27 am
Forum: General Discussion and Questions
Topic: machine pin tuple and int specifiers
Replies: 1
Views: 1342

Re: machine pin tuple and int specifiers

Looks like a number of `member` classes are aliases for `pyb` classes: >>> machine.Pin == pyb.Pin True >>> machine.ADC == pyb.ADC False >>> machine.UART == pyb.UART True >>> machine.SPI == pyb.SPI False >>> machine.I2C == pyb.I2C False >>> machine.RTC == pyb.RTC True >>> machine.Timer == pyb.Timer F...
by hlovatt
Sun Aug 09, 2020 4:41 am
Forum: General Discussion and Questions
Topic: machine pin tuple and int specifiers
Replies: 1
Views: 1342

machine pin tuple and int specifiers

Hi Does anyone know how the tuple specifier for `machine.Pin` works? Tried: >>> machine.Pin(('A', 0)) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can't convert 'tuple' object to str implicitly But as you can see no luck :( Similarly an int specifier: >>> machine...
by hlovatt
Sun Aug 09, 2020 4:08 am
Forum: Development of MicroPython
Topic: machine constants
Replies: 5
Views: 3236

Re: machine constants

Similar issue with `machine.Pin`: >>> dir(machine.Pin) ['__class__', '__name__', 'dict', 'value', '__bases__', 'AF1_TIM1', 'AF1_TIM2', 'AF2_TIM3', 'AF2_TIM4', 'AF2_TIM5', 'AF3_TIM10', 'AF3_TIM11', 'AF3_TIM8', 'AF3_TIM9', 'AF4_I2C1', 'AF4_I2C2', 'AF5_SPI1', 'AF5_SPI2', 'AF7_USART1', 'AF7_USART2', 'AF...
by hlovatt
Sat Aug 08, 2020 6:53 am
Forum: Development of MicroPython
Topic: machine constants
Replies: 5
Views: 3236

machine constants

Hi, When you: >>> dir(machine) ['__class__', '__name__', 'RTC', 'ADC', 'DEEPSLEEP_RESET', 'HARD_RESET', 'I2C', 'PWRON_RESET', 'Pin', 'SOFT_RESET', 'SPI', 'Signal', 'Timer', 'UART', 'WDT', 'WDT_RESET', 'bootloader', 'deepsleep', 'disable_irq', 'enable_irq', 'freq', 'idle', 'info', 'lightsleep', 'mem1...
by hlovatt
Tue Aug 04, 2020 1:54 am
Forum: General Discussion and Questions
Topic: uarray.array methods
Replies: 9
Views: 4351

Re: uarray.array methods

Not sure what all the IDEs do; but PyCharm recognises the dunder methods as both documentation, for warnings, and for types when using the operators.