Search found 7 matches

by AaronKelly
Sat Jan 28, 2017 9:22 am
Forum: General Discussion and Questions
Topic: Overriding special methods
Replies: 4
Views: 4625

Re: Overriding special methods

The overloading of builtin types was just an example to show the error in the error message as it refers to the binary operation as __pow__ instead of **.
by AaronKelly
Fri Jan 27, 2017 8:39 pm
Forum: General Discussion and Questions
Topic: Overriding special methods
Replies: 4
Views: 4625

Re: Overriding special methods

Thanks for the feedback @pythoncoder I found the piece of code that allows for power overloading in objtype.c and replacing [MP_BINARY_OP_POWER] [MP_BINARY_OP_INPLACE_POWER] for [MP_BINARY_OP_POWER] = MP_QSTR___pow__, [MP_BINARY_OP_INPLACE_POWER] = MP_QSTR___iadd__, however the only issue now is tha...
by AaronKelly
Fri Jan 27, 2017 11:40 am
Forum: General Discussion and Questions
Topic: Overriding special methods
Replies: 4
Views: 4625

Overriding special methods

Hello all, I was wondering if anyone has had any luck implementing the special method __pow__? I tried searching for others implementation and tried adding c extension code for the objxxx.c files but when trying to override the object in the class initiator I get the following: > import CustomList >...
by AaronKelly
Fri Jan 27, 2017 11:12 am
Forum: General Discussion and Questions
Topic: Using the C API?
Replies: 18
Views: 22838

Re: Using the C API?

@cduran Nope, the only places you need to refrence it is in the makefile # source files SRC_C = ... and mpconfigport.h extern const struct _mp_obj_module_t mp_module_sample; ... ... ... #define MICROPY_PORT_BUILTIN_MODULES \ ... { MP_ROM_QSTR(MP_QSTR_sample), MP_ROM_PTR(&mp_module_sample) }, \ which...
by AaronKelly
Thu Sep 29, 2016 11:10 pm
Forum: ESP8266 boards
Topic: Simple controller
Replies: 2
Views: 3328

Simple controller

Hello, I'm trying to create a simple repeater server with sockets as a starting point to create a wifi controller. I want to sent an arbitrary string to the ESP8266 and have it parse and do things. I am just looking to connect locally through a phone/laptop wifi and send values directly to it. I've ...
by AaronKelly
Sun Jul 17, 2016 4:12 am
Forum: ESP8266 boards
Topic: Moar flash 4MB->16MB
Replies: 6
Views: 8761

25Q128 16MB Flash chip compatibility

Hey there, I was wondering if the 25Q128 was compatible with micropython. I know that the nodeMCU firmware supports it but was wondering if anyone had tried it out with micropython? Thanks in advance.
by AaronKelly
Sun Jun 19, 2016 7:51 am
Forum: ESP8266 boards
Topic: Load program from flash
Replies: 1
Views: 3420

Load program from flash

Hello board,

I've been tinkering around with the board and want to start expanding it with libraries however I can't figure out how to run programs from the 4MB flash. Do I need to esp.flash_read()? Write an extension in c? Or some other method?

Thanks.