文件名称:rpi_hal-master
-
所属分类:
- 标签属性:
- 上传时间:2016-04-18
-
文件大小:37.93kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
rpi_hal 树莓派的IO控制 pascal版代码-# rpi_hal
Free Pascal Hardware abstraction library for the Raspberry Pi
This Unit, with more than 3000 Lines of Code, delivers procedures and functions to access the rpi HW I2C, SPI and GPIO:
Just an excerpt of the available functions and procedures:
procedure gpio_set_pin (pin:longword highlevel:boolean) { Set RPi GPIO pin to high or low level }
function gpio_get_PIN (pin:longword):boolean { Get RPi GPIO pin Level is true when Pin level is 1 false when 0 }
procedure gpio_set_input (pin:longword) { Set RPi GPIO pin to input direction }
procedure gpio_set_output(pin:longword) { Set RPi GPIO pin to output direction }
procedure gpio_set_alt (pin,altfunc:longword) { Set RPi GPIO pin to alternate function nr. 0..5 }
procedure gpio_set_gppud (mask:longword) { set RPi GPIO Pull-up/down Register (GPPUD) with mask }
...
function rpi_snr :string { delivers SNR: 0000000012345678 }
function rpi_hw :string { delivers Processor Type: BCM2708 or BCM2709 }
...
function i
Free Pascal Hardware abstraction library for the Raspberry Pi
This Unit, with more than 3000 Lines of Code, delivers procedures and functions to access the rpi HW I2C, SPI and GPIO:
Just an excerpt of the available functions and procedures:
procedure gpio_set_pin (pin:longword highlevel:boolean) { Set RPi GPIO pin to high or low level }
function gpio_get_PIN (pin:longword):boolean { Get RPi GPIO pin Level is true when Pin level is 1 false when 0 }
procedure gpio_set_input (pin:longword) { Set RPi GPIO pin to input direction }
procedure gpio_set_output(pin:longword) { Set RPi GPIO pin to output direction }
procedure gpio_set_alt (pin,altfunc:longword) { Set RPi GPIO pin to alternate function nr. 0..5 }
procedure gpio_set_gppud (mask:longword) { set RPi GPIO Pull-up/down Register (GPPUD) with mask }
...
function rpi_snr :string { delivers SNR: 0000000012345678 }
function rpi_hw :string { delivers Processor Type: BCM2708 or BCM2709 }
...
function i
(系统自动生成,下载前可以参看下载内容)
下载文件列表
rpi_hal-master/
rpi_hal-master/README.md
rpi_hal-master/rpi_hal.pas
rpi_hal-master/testrpi.pas
rpi_hal-master/README.md
rpi_hal-master/rpi_hal.pas
rpi_hal-master/testrpi.pas
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.