Mmbasic to the stm32?

This has been touched on before. I’m trying to get to the two backlight controls via MMBasic i2c commands yet having great difficulty. My first thought is that the lowest bus speed Peter allows is 100Khz yet we need to set 10Khz for the stm32 ?

@guu you did state in the past that it was not possible via MMbasic, care to expand on that ?

@adcockm any luck adding display backlight into your latest build ?. Seems to be just a simple address change vs the keyboard backlight (0x05 instead of 0x0A)

I am kind of lost here

What I’ve stated?

I’ve re-checked the picocalc_keyboard code, and yes I set the i2c of keyboard to 10khz

back at that time,10khz can make it work without significantly laggy, I am not sure if it is because of arduino or STM32

If I remember right you can set the corresponding pico i2c to 100khz or even 400khz,still can work with the keyboard

It certainly seems very difficult, I’m only getting 0 back from stm32 register reads yet have no problem communicating with an RTC’s registers on the other i2c bus…

I’m sure folk here have found anything other than 10Khz is unreliable yet cannot be set from MMbasic.

Just to be clear

since keyboard firmware 1.2

there is a reg for battery percent

REG_ID_BAT = 0x0b,

and here is the sample code