The code should have been this:
procedure _i2c_wait() is
if i2c_bus_speed == 255 then
return
elsif _i2c_bus_speed == 10 then
; i2c_1MHz
delay_1us()
return
elsif _i2c_bus_speed == 4 then
; i2c_400kHz
delay_2us()
return
else
; i2c_100kHz
delay_5us()
return
end if
end procedure
On Saturday, February 28, 2026 at 10:51:01 AM UTC-5 Mike wrote:
> The current I2C software library supports three speeds: 1MHz, 400kHz, and
> 100kHz. But many aftermarket I2C devices can go much faster than that,
> such as the small OLED displays.
>
> Long ago I modified my local copy of the library to support an "unlimited"
> speed and I'm asking that this option be added to jallib. See below.
>
> Regards,
> Mike
>
> procedure _i2c_wait() is
>
> if i2c_bus_speed == 255 then
> return
> if _i2c_bus_speed == 10 then
> ; i2c_1MHz
> delay_1us()
> return
> elsif _i2c_bus_speed == 4 then
> ; i2c_400kHz
> delay_2us()
> return
> else
> ; i2c_100kHz
> delay_5us()
> return
> end if
>
> end procedure
>
>
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/jallib/5a402fef-1c22-4228-8d65-9caf569c4346n%40googlegroups.com.