I am new to all this stof. There are lots I do not understand. But it is a wonderful world to dive into.
Did you adjust the timing constants to maintain the overall clock rate? It seems that the addition of your code must have affected the performance...
No my only wish was to make clock streching working for my HTU21D. Yes I know it take longer with every read, because of the extra instructions.
What does the 'DD' in i2c_master_getDD stand for? For reference, the DC in i2c_master_setDC stands for Data/Clock.
I had to find a name and saw this, and it only reads SDA
\#define i2c_master_getDC(void) ((GPIO_REG_READ(GPIO_IN_ADDRESS) >> pinSDA) & 1)
so I made one for SCL
\#define i2c_master_getDD(void) ((GPIO_REG_READ(GPIO_IN_ADDRESS) >> pinSCL) & 1) // PB
@Frida started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I am new to all this stof. There are lots I do not understand. But it is a wonderful world to dive into.
No my only wish was to make clock streching working for my HTU21D.
Yes I know it take longer with every read, because of the extra instructions.
I had to find a name and saw this, and it only reads SDA
so I made one for SCL