Lazarus Raspberry Pi LED Test  [draft]

Lazarus Raspberry Pi LED Test 라자루스에서 GPIO를 사용해보았다. 우선 지정된 핀 코드만 잘 맞으면 아주 쉽습니다. 저의 경우는 라즈베리파이에서 GPIO를 처음 써본거라 많이 삽질 했습니다. 우선 라즈베리파이에서 Lazarus 를 설치하고 LED를 켜는 부분까지 설명해 보도록 하겠습니다. 라자루스 설치 우선 라자루스를 설치하는 법은 간단합니다. 라즈베리 파이에서도 팩키지 설치가 쉽기 때문에 apt-get 을 사용해서 쉽게 설치 할수 있습니다. 하지만 시간이 조금 걸리는 편입니다. 설치 방법은 [Lazarus wiki] 를 참조하면 아주 쉽습니다. sudo apt-get update sudo apt-get upgrade sudo apt-get install fpc sudo apt-get install lazarus Source Code 핀 지정...

February 26, 2019 · 2 min · 267 words · Hillfolk

Object Pascal String Format  [draft]

Number d = 정수(Decimal) e = 과학수치(실수)(Exponent,Scientific) f = 부동소수점(Fixed) g = 일반실수(General) m = 통화(Money) n = 숫자(Number,floating) p = 포인터(Pointer) s = 문자열(String) u = 부호없는 정수(Unsigned decimal) x = 16진수(Hexadecimal) Datetime formatdatetime command Example code : Showing all of the date field formatting data types var myDate : TDateTime; begin // Set up our TDateTime variable with a full date and time : // 5th of June 2000 at 01:02:03....

January 20, 2019 · 5 min · 1057 words · Hillfolk