Search found 14 matches

by smhodge
Wed Oct 09, 2019 6:58 pm
Forum: MicroPython pyboard
Topic: THE FINAL SOLUTION: TRUE RTC ON PYBOARD
Replies: 2
Views: 105

Re: THE FINAL SOLUTION: TRUE RTC ON PYBOARD

Thanks for posting this. It made me double-check my RTC operation because I have been suspecting the backup battery is not doing its job. Sure enough it is not. Yes, my CR2032, measuring a nice 3.0+ volts, is connected to the VBACK pin (not the VBAT one), and sure enough the date/time set with RTC.d...
by smhodge
Tue Oct 08, 2019 10:49 pm
Forum: General Discussion and Questions
Topic: for loop won't work with list of class objects
Replies: 2
Views: 51

for loop won't work with list of class objects

I can't understand why the following code won't work. I first create a class for pyBoard internal led's and then create 2 instances, <led1> and <led2>. Each led object has a method to count timer ticks and then toggle the led when the count reaches a trigger value, then reset the count to 0. The fu...
by smhodge
Mon Sep 16, 2019 4:51 pm
Forum: MicroPython pyboard
Topic: UART code under the hood
Replies: 2
Views: 113

Re: UART code under the hood

Thanks for the info and link to the source code. I just upgraded the firmware to 1.11.
by smhodge
Sun Sep 15, 2019 2:47 am
Forum: MicroPython pyboard
Topic: UART code under the hood
Replies: 2
Views: 113

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: 123

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: 283

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: 283

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: 222

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: 222

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...