Search found 647 matches
- Sat Nov 01, 2014 11:28 pm
- Forum: Development of MicroPython
- Topic: Uart word-size and parity
- Replies: 6
- Views: 8657
Re: Uart word-size and parity
But for that purpose, RTS/CTS line information must also be accessible. Not sure if this is possible in uPy... In a recent patch (yesterday) I added experimental RTS/CTS support. There are 2 uarts on the pyboard that have these lines available. The way it's implemented is that you say you want flow...
- Sat Nov 01, 2014 11:19 pm
- Forum: General Discussion and Questions
- Topic: Low power mode pyb.wfi()
- Replies: 20
- Views: 18696
Re: Low power mode pyb.wfi()
Are you typing pyb.freq(30000000) at the REPL prompt when connected over the USB serial? Can you try pyb.freq(168000000) and also pyb.freq() to see what the output of that says?
- Sat Nov 01, 2014 11:18 pm
- Forum: General Discussion and Questions
- Topic: Low power mode pyb.wfi()
- Replies: 20
- Views: 18696
Re: Low power mode pyb.wfi()
The pyb.freq() command supports frequencies (in MHz) between 24MHz and 168MHz, and it rounds them to a compatible value. Sometimes when you change the frequency while connected over USB you will lose the USB connection, but this doesn't happen very often. And I think pyb.freq(24000000) doesn't allow...
- Sat Nov 01, 2014 9:51 pm
- Forum: MicroPython pyboard
- Topic: HID Keyboard functionality?
- Replies: 14
- Views: 19424
Re: HID Keyboard functionality?
I have made a pull request for custom HID functionality, including keyboard and mouse:
https://github.com/micropython/micropython/pull/955
https://github.com/micropython/micropython/pull/955
- Fri Oct 31, 2014 8:52 pm
- Forum: Development of MicroPython
- Topic: Uart word-size and parity
- Replies: 6
- Views: 8657
Re: Uart word-size and parity
Thanks for pointing this out, I agree it's pretty unconventional behaviour. It is now fixed in the latest version: bits specifies the actual number of data bits, and if you enable parity then it adds an extra bit. So your original initialisation will now work. BTW, you may be interested in this code...
- Mon Oct 27, 2014 10:01 pm
- Forum: MicroPython pyboard
- Topic: HID Keyboard functionality?
- Replies: 14
- Views: 19424
Re: HID Keyboard functionality?
There have been a few requests now for extended HID functionality, so I'll start to look into it. The idea would be that on boot up you specify "custom HID" and pass the HID descriptor, eg: descr = b"\x01\x02\x03..." pyb.usb_mode('HID', descr) Of course, the descr set of bytes will need to define a ...
- Mon Oct 27, 2014 9:58 pm
- Forum: General Discussion and Questions
- Topic: Low power mode pyb.wfi()
- Replies: 20
- Views: 18696
Re: Low power mode pyb.wfi()
Using pyb.wfi() allows you to reduce power consumption by about 1/2 if you are waiting in a loop. Consider: sw = pyb.Switch() while True: if sw(): print("switch pressed") versus: sw = pyb.Switch() while True: if sw(): print("switch pressed") pyb.wfi() The second code will run the same, but use about...
- Wed Oct 22, 2014 11:03 pm
- Forum: General Discussion and Questions
- Topic: Micro Python is an Impressive Project: so I am wondering
- Replies: 2
- Views: 4126
Re: Micro Python is an Impressive Project: so I am wondering
Damien mentioned coming out with a Lite version (which I'll speculate is based on the STM32F401 - which is around $8 Qty1 and in the $3-$4 Qty a few thousand). That's right, I'm working on a Lite version of the pyboard which is based on an STM32F4 chip. I have a prototype which is working. It is ex...
- Wed Oct 22, 2014 12:30 am
- Forum: Programs, Libraries and Tools
- Topic: Python DFU util
- Replies: 17
- Views: 24732
Re: Python DFU util
Awesome.
Can this script live somewhere in the micropython repo (eg tools/ subdir), so that "make deploy" just works?
Can this script live somewhere in the micropython repo (eg tools/ subdir), so that "make deploy" just works?
- Wed Oct 22, 2014 12:17 am
- Forum: Development of MicroPython
- Topic: Socket module
- Replies: 10
- Views: 14342
Re: Socket module
The cc3k.recv() method was trying to do multiple recv calls to get the requested buffer size. This was wrong behaviour that is now fixed. I don't know if this is enough to fully fix your problem, but give this version a try: https://micropython.org/static/download/pybv10-network-2014-10-22-v1.3.4-1-...