Search found 3 matches

by pvangeel
Thu Feb 07, 2019 7:03 am
Forum: General Discussion and Questions
Topic: Deep sleep 'for a while'
Replies: 0
Views: 165

Deep sleep 'for a while'

Hi guys I'm pretty unexperienced in the world of low-power programming. I recently connected an e-ink display to my WiPy (using SPI), and I'm able to update it. According to the specs, I should send a 'sleep' command to the display after updating it to reduce power consumption. However I'm waiting f...
by pvangeel
Fri Mar 23, 2018 1:45 pm
Forum: General Discussion and Questions
Topic: Question regarding inheritance (extending framebuf)
Replies: 2
Views: 386

Re: Question regarding inheritance (extending framebuf)

Hi, thanks for the fast reply.

I should have tested with the latest version (d'uh). On my osx build of micropython it also works. I'm using a WiPy which is unfortunately still on an older micropython version : (
by pvangeel
Thu Mar 22, 2018 11:31 am
Forum: General Discussion and Questions
Topic: Question regarding inheritance (extending framebuf)
Replies: 2
Views: 386

Question regarding inheritance (extending framebuf)

As I've seen in other display drivers it's common to extend the framebuf.FrameBuffer class. However I'm fairly new to (micro)python and I'm seeing some weird results. First of all, this code seems to work just fine: class Super: def __init__(self, name): self.name = name print(name) class Sub(Super)...