You are welcome!
Here is another example. Thank you, n602_na!

You are welcome!
Here is another example. Thank you, n602_na!

Now have good reason to test LSM9DS1
iNEMO inertial module with 3D accelerometer, 3D gyroscope, 3D magnetometer, temperature…
Can not find reference for SETPIN in *-e.txt files
Can you please let me know what is *equivalent in MachiKania Basic compiler?
SetPin gp4, gp5, I2C
I2C open 100, 200
*example from MMBASIC
It seems that I2c is not in reach on the PicoCalc side connector….
According to the phyllosoma/PicoCalc at main · machikania/phyllosoma · GitHub
The I/O ports are assigned as follows:
GP0 I/O bit0 / PWM3 / I2C SDA / button1 (UP)
GP1 I/O bit1 / PWM2 / I2C SCL / button2 (LEFT)
GP2 I/O bit2 / PWM1 / button3 (RIGHT)
GP3 I/O bit3 / SPI CS / button4 (DOWN)
GP4 I/O bit4 / UART TX / button5 (START)
GP5 I/O bit5 / UART RX / button6 (FIRE)
GP6 I2C1_SDA (Keyboard)
GP7 I2C1_SCL (Keyboard)
...
EDIT
Please ignore question, have discovered INI file ![]()
If anyone is interested, I wrote a syntax plugin to write MachiKania code in VIM.
MachiKania type P ver 1.6.1 was released:
Please download the “machikania-rt-161.zip” for PicoCalc.
From the readme.txt:
Pyllosoma 1.61/KM-1511 (2025.12.27)
The uf2 files were constructed by using pico-sdk ver 2.2.0, so they can be booted from the bootloaders.
MachiKania type P ver 1.6.1 now supports “RND#()” float function, which produces random value between 0 and 1.
Thank you very much, I really appreciate it.
Am I the only one that is unable to run the non-graphics samples?
Please let us know the detail of symptom.
I’m using the Pico 2 W, I double checked that the correct firmware was loaded. I loaded it via uf2loader but I don’t think that should affect things.
The sample program for the timer is TIME-INT.BAS sample program. I tried reducing the timer interval of 1000000 microseconds since KM-BASICs own documentation claims the maximum is 175769 but it didn’t help.
Sound was tested with the SOUND.BAS and MUSIC.BAS sample program. Altering the volume control, or plugging in headphones has no effect. I don’t think the sound hardware is completely defective as short click is heard at startup or when a SOUND statement is used.
Please follow these steps:
If you follow above steps and still have the problem, please let me know.
I loaded the new version and can confirm both timer and sound work great. Thanks!