Skip to content

markprocess/ultibo-nim

Repository files navigation

ultibo-nim

Ultibo Features and Nim

Blinks the raspberry pi's activity led.

Try an rpi3b+ on-line at ultibo-nim.iot.ngrok.io

Try a vpb/qemu (with vnc too) in the cloud

Prepare an sd card for your own pi

Raspbian Development Host Requirements

./run.sh - compiles the ultibo pascal main program and the nim library, creates the kernel.img boot file and reboots to start the new kernel. The activity led should blink once per second. The new kernel will have restored raspbian's /boot/config.txt so that recycling power will reboot to raspbian.

If the ultibo kernel does not work as expected, insert the sd card in a computer and copy default-config.txt to config.txt to restore raspbian.

Two ring buffers are used between the main thread and the nim thread. One provides a millisecond clock to the nim thread and one provides an led request to the main thread. The main thread supplies the clock and changes the led based on requests. The nim thread reads the clock and requests led changes based on the time.

Discussion