Search found 4 matches
- Thu Jan 28, 2016 4:07 pm
- Forum: General Discussion and Questions
- Topic: DAC
- Replies: 2
- Views: 2838
- 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?
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?
- 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
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
- 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...