Search found 29 matches

by Hanilein
Tue Jan 22, 2019 10:26 am
Forum: MicroPython pyboard
Topic: RTC wakeup depends on calibration value ???
Replies: 2
Views: 555

RTC wakeup depends on calibration value ???

There is a problem with the RTC wakeup, the timing depends on the calibration value and is therefore incorrect... Sorry for the long text, but I am kinda stuck... I am working on a code to self-adjust the RTC on the PyBoard. The code uses a PPS signal from a GPS to calculate the calibration value of...
by Hanilein
Sat Dec 22, 2018 12:04 pm
Forum: MicroPython pyboard
Topic: Real-Time Clock (RTC) drift
Replies: 27
Views: 17659

Re: Real-Time Clock (RTC) drift

I am working on a code to self-adjust the RTC on the PyBoard. It is a learning exercise, and i am not finished yet. The idea is, to use a GPS with a PPS (I use the Adafruit ultimate GPS) and compare the RTC output to the PPS signal. The rtc.datetime() function supplies a subsecond value, which is 1/...
by Hanilein
Sun Dec 02, 2018 12:22 am
Forum: General Discussion and Questions
Topic: UART inheritance mystery
Replies: 2
Views: 489

Re: UART inheritance mystery

Thanks, Dave.

I stick for convenience to my Two-Parameter solution and set the columns and rows using properties.
That works (for now), but I'll keep an eye on the derived class...
by Hanilein
Thu Nov 29, 2018 9:10 am
Forum: General Discussion and Questions
Topic: UART inheritance mystery
Replies: 2
Views: 489

UART inheritance mystery

A "What a Terrible Failure"-moment (a.k.a WTF) for me... I am developing a set of classes to be used with terminals. I am deriving from UART as follows: from pyb import UART class serialTerminal(UART): def __init__(self,port,speed,maxCol,maxRow): self.maxCol = maxCol self.maxRow = maxRow troubleTerm...
by Hanilein
Mon Nov 19, 2018 6:13 am
Forum: MicroPython pyboard
Topic: Pyboard 1.1 Eagle library
Replies: 3
Views: 1112

Re: Pyboard 1.1 Eagle library

I have one, just used to create a breadboard adapter, so it is really just the footprint and a symbol.
Hope it helps.
by Hanilein
Thu Oct 18, 2018 8:37 am
Forum: MicroPython pyboard
Topic: Minor mistake in Documantation? - class Pin
Replies: 1
Views: 520

Minor mistake in Documantation? - class Pin

The documentation for the class Pin says: CPU pins which correspond to the board pins are available as pyb.cpu.Name . For the CPU pins, the names are the port letter followed by the pin number. On the PYBv1.0, pyb.Pin.board.X1 and pyb.Pin.cpu.A0 are the same pin. The example is correct, but in the f...
by Hanilein
Fri Jul 13, 2018 4:36 am
Forum: General Discussion and Questions
Topic: docstring challenge
Replies: 3
Views: 851

Re: docstring challenge

Thanks, Kevin - can anybody confirm this?
I vaguely recall the very first try to get a docstring somehow worked - or maybe it was an illusion?
by Hanilein
Fri Jul 13, 2018 4:30 am
Forum: MicroPython pyboard
Topic: Driver installation failure
Replies: 1
Views: 551

Driver installation failure

Hello everyone, I have two pyboards V1.1 running MicroPythonV1.9.2 to play with. I have issues to install the drivers as recommended. I also have two laptops, one is a Lenovo, the other one a Toshiba. Both running Windows 7 Enterprise SP1. The first step of the install is to plug in the pyboard, and...
by Hanilein
Thu Jul 12, 2018 1:00 pm
Forum: General Discussion and Questions
Topic: docstring challenge
Replies: 3
Views: 851

docstring challenge

Hi, I am running MicroPython on a Pyboard and I am new to Python, but not to programming. I found online a site explaining the use of DocString and i defined a function 'nonsense' in a module 'clock.py' : [code] # file clock.py : Clock Functions import pyb def nonsense(): '''test doc string''' retur...