Closed oomek closed 4 years ago
As it says in the readme, you need to specify the pin numbers differently for AVR to use the fast code. PB0 should be passed as 0xB0 PB2 should be passed as 0xB2
Sorry, I must have missed that. The waveform looks nice, although the PWM is very wide in low speeds. I've had to set I2CInit(&bbi2c, 1600000L);
to get 400kHz on Attiny85 btw.
I wasn't accurate with the timing because this library was really aimed at pushing the SSD1306 to go as fast as possible. Most I2C devices are pretty forgiving with the waveform shape and timing.
I've started experimenting with your library today, but so far I haven't managed to get any output, even as simple code as this does not show any activity on the logic analyzer.
Am I doing something wrong?