Search found 129 matches

by chuckbook
Wed Feb 10, 2021 7:36 pm
Forum: Hardware Projects
Topic: ATE-NIC project using Pyboard D-series and 20+ I2C
Replies: 10
Views: 740

Re: ATE-NIC project using Pyboard D-series and 20+ I2C

Just a note:
On PYBD the RTC clock is factory calibrated. However, temperature compensation isn't as good as for the RV-8803 (typical +/-25ppm from -40C..85C).
by chuckbook
Tue Feb 09, 2021 8:36 pm
Forum: Hardware Projects
Topic: ATE-NIC project using Pyboard D-series and 20+ I2C
Replies: 10
Views: 740

Re: ATE-NIC project using Pyboard D-series and 20+ I2C

Nice Project!
Q: Why are you using an external RTC chip? Isn't the PYBD RTC good enough?
by chuckbook
Wed Jan 27, 2021 11:37 am
Forum: General Discussion and Questions
Topic: Multiple Usb HID interface
Replies: 7
Views: 452

Re: Multiple Usb HID interface

We are using it on PYBD SW6 to emulate a combination of TOUCH & KEYBOARD. It works perfect.
by chuckbook
Tue Jan 26, 2021 11:55 am
Forum: General Discussion and Questions
Topic: Multiple Usb HID interface
Replies: 7
Views: 452

Re: Multiple Usb HID interface

It can be done using an adequate HID descriptor.
by chuckbook
Fri Sep 11, 2020 2:48 pm
Forum: MicroPython pyboard
Topic: [SOLVED] Prevent powerbank to go into standby mode
Replies: 4
Views: 847

Re: Prevent powerbank to go into standby mode

It's usually ok to create power peaks onec and a while to keep the power bank happy. def wup(p): for i in range(1000): pass rtc.wakeup(10000, wup) This is a pretty naive way to create power consumption peaks, but it shows the idea. Note: If you run your pyboard at a low processor clock it might not ...
by chuckbook
Mon Aug 17, 2020 8:06 am
Forum: Pyboard D-series
Topic: wbus-DIP28 button use?
Replies: 5
Views: 820

Re: wbus-DIP28 button use?

This button allows to put the STM32 processor into boot mode. Keep in mind that ST boot loader supports only the FS port!
by chuckbook
Sat Aug 01, 2020 5:48 pm
Forum: General Discussion and Questions
Topic: RTC sub-seconds prescaler register not writable
Replies: 2
Views: 614

Re: RTC sub-seconds prescaler register not writable

Keep in mind that the RTC has to be fully powered down to change it's configuration.
by chuckbook
Mon Jul 13, 2020 8:06 am
Forum: Pyboard D-series
Topic: PYBD WBUS connector
Replies: 22
Views: 5456

Re: PYBD WBUS connector

Any copper track to a solder pad simply increases adhesive power between copper layer and substrate. This is very important in case of poor soldering which usually happens during manual assembly.
by chuckbook
Thu Jul 09, 2020 9:45 am
Forum: Programs, Libraries and Tools
Topic: TypeError: 'bytearray' object doesn't support item deletion
Replies: 9
Views: 1519

Re: TypeError: 'bytearray' object doesn't support item deletion

Maybe I wasn't precise enough with my wording.
Intact was meant the way that storage space stays fixed not it's content.
Of course there are better ways to deal with non-contiguous data, but if you have to shift data chunks around it is pretty efficient.
by chuckbook
Wed Jul 08, 2020 10:13 am
Forum: Programs, Libraries and Tools
Topic: TypeError: 'bytearray' object doesn't support item deletion
Replies: 9
Views: 1519

Re: TypeError: 'bytearray' object doesn't support item deletion

What about:

Code: Select all

lba = 1000         # size of bytearray
n = 10             # number of bytes to delete
ba = bytearray(lba)
mba = memoryview(ba)
mba[0:-n] = mba[n:]
This construct leaves the bytearray intact, which might come in handy for later reuse.