Search found 20 matches

by dastultz
Sun Jan 31, 2016 3:23 am
Forum: Programs, Libraries and Tools
Topic: IDEs (PyCharm, NetBeans, etc.) for MicroPython
Replies: 21
Views: 26867

Re: PyCharm or NEtBeans with pyBoard.

I use PyCharm for development, and I too want code completion. I've been looking at the `inspect` module and it would seem to me that this could be used to generate the modules, classes, methods, and fields in `pyb`. This doesn't seem too hard, but it also seems like someone would have thought of th...
by dastultz
Tue Jan 19, 2016 10:29 pm
Forum: MicroPython pyboard
Topic: best approach for an application config file
Replies: 16
Views: 23191

Re: best approach for an application config file

pythoncoder wrote:@Sokrates Your nested dictionary example won't work as posted.
defaultdict to the rescue!
https://www.accelebrate.com/blog/using- ... ct-python/
by dastultz
Sun Jan 17, 2016 5:32 pm
Forum: MicroPython pyboard
Topic: best approach for an application config file
Replies: 16
Views: 23191

Re: best approach for an application config file

I'm with Dave on the wordy XML thing. I'd certainly give JSON a try but I'd favor YAML for super clean syntax.

/Daryl
by dastultz
Sat Jan 16, 2016 8:16 pm
Forum: MicroPython pyboard
Topic: Accelerometer sample rate
Replies: 2
Views: 3242

Re: Accelerometer sample rate

Ah, excellent, I was able to take your input and use the manual to come up with this: accel = pyb.Accel() accel.write(0x07, accel.read(0x07) & 0b11111110) # place in stand by mode to write registers accel.write(0x08, accel.read(0x08) & 0b11111000) # 120 samples/sec accel.write(0x07, accel.read(0x07)...
by dastultz
Fri Jan 15, 2016 9:42 pm
Forum: MicroPython pyboard
Topic: Accelerometer sample rate
Replies: 2
Views: 3242

Accelerometer sample rate

Hello, I started out trying to get a 1kHz sample rate of one axis of the (1.0 pyboard) accelerometer logged to the SD card. I found a lot of repeated data in the file (for a gentle but continuous side-to-side tilt motion). This produces a lot of "flat spots" in the graphic plot. Then I read the docu...
by dastultz
Wed Jan 13, 2016 5:24 pm
Forum: MicroPython pyboard
Topic: Pin interrupt on USR Switch()
Replies: 6
Views: 7170

Re: Pin interrupt on USR Switch()

Ah, sneaky! Well, now I know where to go for help with Fast Filters...

/Daryl
by dastultz
Tue Jan 12, 2016 5:04 pm
Forum: MicroPython pyboard
Topic: Ideas for next evolution of pyboard
Replies: 75
Views: 71907

Re: Ideas for next evolution of pyboard

I think a lot of people here have some good ideas about stuff I'm not really qualified to judge. I have a couple of Teensy's (Teensies?) lying around. One of the reasons I got the Teensy was because it has a way to run as a standard MIDI device. Just plug it in to USB and it shows up as a system MID...
by dastultz
Tue Jan 12, 2016 1:44 pm
Forum: MicroPython pyboard
Topic: Pin interrupt on USR Switch()
Replies: 6
Views: 7170

Re: Pin interrupt on USR Switch()

"X17" works perfectly as the pin identifier when used with both `Pushbutton` and `Switch` in Peter Hinch's Micropython-scheduler library. Thanks for the tip, pythoncoder, and big thanks to Peter for the scheduler. I've just gotten started with the Pyboard and this was the first thing I thought of cr...
by dastultz
Mon Jan 11, 2016 4:22 pm
Forum: MicroPython pyboard
Topic: Pin interrupt on USR Switch()
Replies: 6
Views: 7170

Re: Pin interrupt on USR Switch()

Yes, you are quite right about polling. I think I meant I wanted to use Pushbutton rather than Pinblocker. In either case I need the pin name, so I'll give it a shot with "X17".

Thanks.

/Daryl
by dastultz
Mon Jan 11, 2016 3:03 am
Forum: MicroPython pyboard
Topic: Pin interrupt on USR Switch()
Replies: 6
Views: 7170

Pin interrupt on USR Switch()

Hello,

I know I can set an interrupt callback for the the pby.Switch(). What I want to do is use Peter Hinch's Scheduler to set up an interrupt using Pinblocker. Is there a pin identifier for the USR switch?

Thanks.

/Daryl