项目作者: markprocess

项目描述 :
Ultibo and Nim
高级语言: Pascal
项目地址: git://github.com/markprocess/ultibo-nim.git
创建时间: 2018-07-30T04:07:15Z
项目社区:https://github.com/markprocess/ultibo-nim

开源协议:MIT License

下载


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