Search found 51 matches

by tannewt
Sat Oct 22, 2016 12:53 am
Forum: Development of MicroPython
Topic: RFC: Hardware API: finalising machine.Pin
Replies: 62
Views: 44586

Re: RFC: Hardware API: finalising machine.Pin

I didn't even realise that pin.toggle() was specified in these specs :) Do we need it? It's listed in the specs as "optional" but I think it's a bad idea to have it optional because then some ports will have it and others will not. Do we want to add pin.high() and pin.low() as convenient ways of do...
by tannewt
Sat Oct 22, 2016 12:28 am
Forum: Development of MicroPython
Topic: RFC: Hardware API: finalising machine.Pin
Replies: 62
Views: 44586

Re: RFC: Hardware API: finalising machine.Pin

I think that we need to address the more fundamental question, should a port be allowed to add features to say machine.Pin? Yes, that's an important question, and would apply to all classes and functions (eg machine.reset_cause and its constants). We need a way to add extensions to the API for a pa...
by tannewt
Wed Sep 07, 2016 4:20 pm
Forum: Development of MicroPython
Topic: Gitter chat?
Replies: 6
Views: 5541

Re: Gitter chat?

dhylands, Thanks for letting me know your timezone! I'm also on the west coast and will ping you today. pythoncoder, yup I believe Gitter has push notifications and also email notifications of mentions. You are right about permissions, the Gitter channels mirror GitHub repos and therefore someone wi...
by tannewt
Tue Sep 06, 2016 11:31 pm
Forum: Development of MicroPython
Topic: Gitter chat?
Replies: 6
Views: 5541

Re: Gitter chat?

Oh, the link for Gitter is https://gitter.im.
by tannewt
Tue Sep 06, 2016 11:30 pm
Forum: Development of MicroPython
Topic: Gitter chat?
Replies: 6
Views: 5541

Gitter chat?

Hi all, I'm continuing working on micropython for Adafruit and am looking for a way to bounce ideas off of other micropython developers. I found #micropython on freenode but haven't seen any discussion there. I did some work on Betaflight (flight control software) and they use Gitter to provide a pl...
by tannewt
Tue Aug 30, 2016 5:22 pm
Forum: Development of MicroPython
Topic: Standard Machine API?
Replies: 3
Views: 3495

Re: Standard Machine API?

deshipu, perfect. I followed up there with my thoughts. dhylands, thanks! I had seen that in the past but I'll look again and make sure my port is compatible. I think its getting close to what I was thinking where there are low level classes specific to the hardware and high level classes that aren't.
by tannewt
Tue Aug 30, 2016 7:33 am
Forum: Development of MicroPython
Topic: Standard Machine API?
Replies: 3
Views: 3495

Standard Machine API?

Whats the thinking on the machine API compatibility across ports? I'm porting micropython to the SAMD21x18 which is on the Arduino Zero. Specifically, I'm adding PWM support to the port but I'm unsure which approach to take. The ESP8266 has a PWM class while the Teensy and STMHAL have separate timer...
by tannewt
Sat Aug 27, 2016 8:37 pm
Forum: Other Boards
Topic: Atmel SAM D21G18
Replies: 13
Views: 13913

Re: Atmel SAM D21G18

Thanks for the awesome pointers Dave! I've got PWM and DAC support on my list before the file system so it'll be a few days until I get it going.
by tannewt
Fri Aug 26, 2016 7:01 pm
Forum: Other Boards
Topic: Atmel SAM D21G18
Replies: 13
Views: 13913

Re: Atmel SAM D21G18

Thanks Dave! Would you mind pointing me to the code that FatFS calls out to for the actual reading and writing? I've looked through the other ports but can't figure out how to provide that low level piece. Is it different from the extmod/vfs code?
by tannewt
Fri Aug 26, 2016 12:23 am
Forum: Other Boards
Topic: Atmel SAM D21G18
Replies: 13
Views: 13913

Re: Atmel SAM D21G18

Thanks for the reply! Its 256KB of flash storage and the current code weighs in at ~80KB I think. Looking at some other implementations it seemed that 64KB was pretty common and should fit easily. Page size is 64 bytes. Is that the same as erase size? The datasheet is here: http://www.atmel.com/Imag...