Search found 86 matches
- Fri Apr 09, 2021 7:56 pm
- Forum: MicroPython pyboard
- Topic: I2C to AVR Xmega
- Replies: 2
- Views: 3017
Re: I2C to AVR Xmega
Thanks, that solved it. Changing the Xmega slave address to 10 allowed the uPython scan() to find it. I did some more tests and found that even if scan() does not find address 3, writeto(3,buf) still works. It returned the correct number of ACK's and the Xmega rec'd the bytes ok. The "issue" I origi...
- Fri Apr 09, 2021 12:31 am
- Forum: MicroPython pyboard
- Topic: I2C to AVR Xmega
- Replies: 2
- Views: 3017
I2C to AVR Xmega
I need to send (but not receive) packets over I2C to an AVR Xmega microcontroller, which are both on the same I2C bus. I have I2C (aka TWI in AVR jargon) master and slave code written and thoroughly tested on the Xmega, including an equivalent of the micropython scan() method. At least I assume it i...
- Thu Mar 25, 2021 4:13 pm
- Forum: MicroPython pyboard
- Topic: Is this an original Pyboard? [SOLVED]
- Replies: 5
- Views: 3760
Re: Is this an original Pyboard?
Have you contacted Sparkfun? I've always found them to be very responsive to customers.
I've probably purchased over 10 pyboards from them over the past couple of years, and IIRC all or most of them came in a foil package w/o any black box, and no problems with any of them.
I've probably purchased over 10 pyboards from them over the past couple of years, and IIRC all or most of them came in a foil package w/o any black box, and no problems with any of them.
- Sat Feb 13, 2021 4:58 pm
- Forum: MicroPython pyboard
- Topic: "cold" plugging usb?
- Replies: 0
- Views: 1541
"cold" plugging usb?
My pyboards (v1.1) are powered externally via V+. I know from experience it is ok to hot plug/unplug the USB connection while the board is powered on (or at least I haven't had any issues in over 100's of times). However, some time ago I had an issue that made me suspect "cold" plugging it, i.e., ha...
- Fri Dec 11, 2020 8:19 pm
- Forum: MicroPython pyboard
- Topic: UART TX buffer length
- Replies: 1
- Views: 1771
UART TX buffer length
Is it possible to set the UART TX buffer length? Is it possible to set it to 0 for an RX-only UART serial port? The following works for setting the RX buffer length: from pyb import UART uart = UART(6) uart.init(115200, rxbuf=64) # also accepts "read_buf_len" instead of "rxbuf" but adding "txbuf=64"...
- Mon Nov 30, 2020 1:17 am
- Forum: MicroPython pyboard
- Topic: stdout to TTL serial using FT230X
- Replies: 0
- Views: 1416
stdout to TTL serial using FT230X
Using dupterm I am able to redirect stdout on the USB port of the pyboard to another UART (aka serial TTL port). I've tested it using the REPL and it works just fine. However, many of my target pyboards don't have an extra UART available for such use, so I tried making a small external adapter board...
- Tue Sep 22, 2020 3:11 am
- Forum: MicroPython pyboard
- Topic: CAN timeout recovery
- Replies: 0
- Views: 2217
CAN timeout recovery
Once in a blue moon (like after 30 minutes or so of receiving a couple of packets every minute over the CAN bus) I get a "OSError: [Errno 110] ETIMEDOUT" error. The code is like this: class CanPort(CAN): def __init__(self): super().__init__(1) self.buf = bytearray(8) self.lst = [0, 0, 0, memoryview(...
- Thu Sep 03, 2020 5:01 pm
- Forum: MicroPython pyboard
- Topic: boot file system and SKIPSD
- Replies: 2
- Views: 1822
boot file system and SKIPSD
My interpretation of the documentation is that the boot file system (/flash or /sd) is where it first finds <boot.py> and <main.py>, starting the search with /sd if it exists, and that you can force /sd to be skipped and thus use /flash by either removing the SD card or putting an empty SKIPSD file ...
- Thu Sep 03, 2020 4:42 pm
- Forum: MicroPython pyboard
- Topic: rshell issue
- Replies: 4
- Views: 2336
- Thu Sep 03, 2020 3:12 pm
- Forum: MicroPython pyboard
- Topic: rshell issue
- Replies: 4
- Views: 2336
Re: rshell issue
Thanks, sure enough it was there, /sd/cos.log on the current Windows drive. I guess I got caught by some sort of under-the-hood way rhell works. I thought "/" as in "/sd" would be the root of the pyboard. It looks like its actually "/" = "/pyboard"; is that correct? Why don't I see "/pyboard" listed...