Search found 5 matches
- Tue May 25, 2021 12:29 pm
- Forum: General Discussion and Questions
- Topic: UART, UASYNCIO and I2C
- Replies: 1
- Views: 2045
Re: UART, UASYNCIO and I2C
I made now some progress by studying the impressive work of Peter Hinch ( https://github.com/peterhinch/micropython-async/blob/master/v3/docs/TUTORIAL.md ). There is plenty of documentation available, but one needs to get acquainted with the topic (and as usual, it hurts ;) ). I based my attempts on...
- Mon May 10, 2021 10:01 am
- Forum: General Discussion and Questions
- Topic: UART, UASYNCIO and I2C
- Replies: 1
- Views: 2045
UART, UASYNCIO and I2C
Hello forum, I am currently trying to develop an application as "addon" for a hobby RC receiver. The receiver runs a proprietary protocol in a half-duplex mode. I am using the Pyboard as development platform (I was a kickstarter backer in 2014 :) ). The receiver is connected via UART (125kbaud, 8-N-...
- Mon Feb 29, 2016 5:03 pm
- Forum: General Discussion and Questions
- Topic: Subclassing problem
- Replies: 3
- Views: 3030
Re: Subclassing problem
Just for reference.
This is the script I finally came up with to control my LEDs via pyboard GPIO pins:
http://github.com/chiefenne/ACL/blob/master/acl.py
It seems to work also without the hack.
This is the script I finally came up with to control my LEDs via pyboard GPIO pins:
http://github.com/chiefenne/ACL/blob/master/acl.py
It seems to work also without the hack.
- Mon Feb 08, 2016 12:17 pm
- Forum: General Discussion and Questions
- Topic: Subclassing problem
- Replies: 3
- Views: 3030
Re: Subclassing problem
Thanks a lot Dave. I'll follow your suggestion.
I'll also upgaded meanwhile to firmware --> pybv10-2015-12-31-v1.5.2.dfu
Did not yet test the class inheritance there.
(also forgot to check which firmware level I had before. Shame on me)
I use the pyboard v1.0
I'll also upgaded meanwhile to firmware --> pybv10-2015-12-31-v1.5.2.dfu
Did not yet test the class inheritance there.
(also forgot to check which firmware level I had before. Shame on me)
I use the pyboard v1.0
- Sun Feb 07, 2016 11:56 am
- Forum: General Discussion and Questions
- Topic: Subclassing problem
- Replies: 3
- Views: 3030
Subclassing problem
I try to subclass the pyb.Pin class. Whats wrong with: # main.py -- put your code here! import pyb class myLED(pyb.Pin): def __init__(self, pin='X1', mode=pyb.Pin.OUT_PP): super(myLED, self).__init__(pin, mode) def on(self): self.high() def off(self): self.low() led = myLED() led.on()