Search found 5 matches

by klik
Mon Jul 17, 2017 2:01 pm
Forum: MicroPython pyboard
Topic: py board is a master or slave device
Replies: 3
Views: 3104

Re: py board is a master or slave device

It is possible to configure the pyboard as a USB host so that you can connect a mouse or keyboard. @dhylands That sounds interesting. So, if I understood you correctly, I can connect a normal USB-keyboard to the pyboard and then send some characters without a PC to the Pyboard? Can you please give ...
by klik
Thu Jul 09, 2015 9:24 am
Forum: General Discussion and Questions
Topic: content of an object in Micropython
Replies: 3
Views: 3490

Re: content of an object in Micropython

So everything is fine. Thank you for the information.
But it's strange that a function in the class is displayed with dir() :roll:
by klik
Wed Jul 01, 2015 7:19 am
Forum: General Discussion and Questions
Topic: content of an object in Micropython
Replies: 3
Views: 3490

content of an object in Micropython

Hi everyone, i have a small question, not a big deal but python2.7 (or python3.4) gives a different result than Micropython. python3.4 Python 3.4.0 (default, Jun 19 2015, 14:20:21) [GCC 4.8.2] on linux class A: def __init__(self): self.x = 10 self.y = 10 a = A() dir(a) and the result ['__class__', '...
by klik
Fri Jan 16, 2015 4:48 pm
Forum: MicroPython pyboard
Topic: TIM2 TIM5 Gated mode
Replies: 5
Views: 6337

Re: TIM2 TIM5 Gated mode

So finally I have found some time to get a closer look at the code and the STM32F4 datasheet. :( @dhylands thank you for your help. But it seems to be merely a polling solution. The while: looks at the Port until it is set. I guess it would work. But not exactly what I was looking for. But i think, ...
by klik
Tue Jan 13, 2015 9:02 am
Forum: MicroPython pyboard
Topic: TIM2 TIM5 Gated mode
Replies: 5
Views: 6337

TIM2 TIM5 Gated mode

Hi everyone, first of all I have to say I like the pyboard. It is tiny and you can develop software really fast for it. But at the moment I'm stuck. I try to get the TIM2 and TIM5 (32 bit) working in the gated mode. I want to start counting as long as a pin is high (or low). TIM2 CH2 Pin.X2 I found ...