Search found 4 matches

by Hansg
Thu Jan 28, 2016 4:07 pm
Forum: General Discussion and Questions
Topic: DAC
Replies: 2
Views: 2838

Re: DAC

Thank you very much, updating from firmware did the trick.
by Hansg
Wed Jan 27, 2016 3:29 pm
Forum: General Discussion and Questions
Topic: DAC
Replies: 2
Views: 2838

DAC

Hello all,
I do:
from pyb import DAC
dac=DAC(1, bits=12)
and I get type error: function does not take keyword arguments
What do I wrong?
by Hansg
Thu Nov 19, 2015 2:20 pm
Forum: General Discussion and Questions
Topic: ExtInt
Replies: 1
Views: 2566

ExtInt

Hello all,
My purpose is to read a value from a transducer through I2C on interrupt base in my pyboard.
In the interruptservice routine I want to read the value(global)
Is this possible?
I have trouble with my callback function.
Thanks a lot for any help.
Hans
by Hansg
Fri Sep 11, 2015 1:44 pm
Forum: MicroPython pyboard
Topic: converting bytearray
Replies: 2
Views: 16076

converting bytearray

I connect by i2c a module BN0055 (magnetic,gyro,acceleration) to my pyboard. Repeatedly i want to read the course, 2 bytes with low byte first and high byte next. I do this with i2c.read(2,40,0x1A) and get for instance b'\xc7\x14'. The 2 hex bytes have to be switched and converted to decimal. For sw...