Search found 10 matches

by smhodge
Sun Sep 15, 2019 2:47 am
Forum: MicroPython pyboard
Topic: UART code under the hood
Replies: 1
Views: 30

UART code under the hood

Several UART methods imply that under the hood the code can accumulated multiple bytes received, for example, UART.any() returns "the number of bytes waiting". Based on other languages and microcontrollers I interpret that to mean that the underlying UART code is interrupt-driven and accumulate byte...
by smhodge
Sun Sep 15, 2019 2:33 am
Forum: General Discussion and Questions
Topic: displaying byte data with REPL
Replies: 3
Views: 53

displaying byte data with REPL

I'm using REPL to test I2C code. It seems to work fine except that the bytes returned from the device get displayed as a string with a mixture of formats: ascii characters if a "printable" ascii character, otherwise hex notation. For example: >>> i2c.send(0,69) >>> i2c.recv(2,69) b'9\x9f' I know tha...
by smhodge
Fri Jun 07, 2019 1:11 am
Forum: MicroPython pyboard
Topic: switch callback on press & release
Replies: 3
Views: 251

Re: switch callback on press & release

Thanks. Another gem in the documentation I missed. Usually I use MAX681x switch debouncers. Pricey little hummers but they are worth it in my book. Steve
by smhodge
Thu Jun 06, 2019 3:58 pm
Forum: MicroPython pyboard
Topic: switch callback on press & release
Replies: 3
Views: 251

switch callback on press & release

Is it possible to have a callback on a switch release as well as the initial press? If so, how do you configure it?
by smhodge
Thu Jun 06, 2019 3:48 pm
Forum: MicroPython pyboard
Topic: pyBoard messed up after firmware update
Replies: 2
Views: 206

Re: pyBoard messed up after firmware update

Thanks! I had accidentally loaded v1.0 firmware, not 1.1. All is good now.
by smhodge
Thu Jun 06, 2019 4:08 am
Forum: MicroPython pyboard
Topic: pyBoard messed up after firmware update
Replies: 2
Views: 206

pyBoard messed up after firmware update

I had a v1.9.1 pyBoard that was working just fine until I did a firmware update, to v1.10 (after reading it was released). I followed the procedure described on Sparkfun and the update ran to completion just fine. After removing the DFU jumper and plugging back in the USB cable, Windows gives a "USB...
by smhodge
Wed Jan 30, 2019 7:31 pm
Forum: MicroPython pyboard
Topic: Necessary to connect ALL V+ & GND pins?
Replies: 2
Views: 225

Re: Necessary to connect ALL V+ & GND pins?

Thanks, I'll add those caps too.
by smhodge
Mon Jan 28, 2019 1:28 am
Forum: MicroPython pyboard
Topic: Necessary to connect ALL V+ & GND pins?
Replies: 2
Views: 225

Necessary to connect ALL V+ & GND pins?

I am making a PCB to be a "motherboard" for the pyBoard. Can V+ and GND be connected via only one pin each instead of connecting to all the V+ and GND pins? I'm assuming they are electrically connected inside the pyBoard of course so my question is more one of currents, trace widths, ground loops, e...
by smhodge
Sat Jan 26, 2019 2:22 am
Forum: MicroPython pyboard
Topic: spi and chip select
Replies: 2
Views: 249

Re: spi and chip select

Thanks, especially for the tip on Slave use, even though that's unlikely for me, it's good to know.
by smhodge
Tue Jan 22, 2019 2:39 am
Forum: MicroPython pyboard
Topic: spi and chip select
Replies: 2
Views: 249

spi and chip select

It appears the /SS line is not implemented. Am I correct that one can just use any available digital output pin as a chip select, driving it low with pin.value(0) to select the desired device on the SPI bus?