Category Archives: c-lazarus

Free Pascal / Lazarus

Using Modulus Arithmetic to Navigate a Circular List

I have to go thru my notes every so often to find the formula for navigating backwards, so I’ll post this stuff here in case anyone else finds it useful. Modulus math is very handy for dealing with circular functions … Continue reading

Posted in c-arduino, c-lazarus | Tagged | Leave a comment

Using Lazarus / Free Pascal to Communicate with ESP8266

In my prior post, ESP8266/Arduino IDE: Building an LED Blink Server, I documented the creation of an LED blink server that runs on an ESP8266. Now I’m going to show how to access that ESP8266 using Lazarus. Because Lazarus can … Continue reading

Posted in c-esp8266, c-lazarus, c-rpi | Tagged | Leave a comment

Using Lazarus and the Adafruit PiTFT Display + TouchScreen for RaspBerry Pi

I recently purchased an Adafruit PiTFT TFT/Touchscreen for my Raspberry Pi thinking I might want to use it to monitor status of a project on which I am working. It cost $35. Not sure if I would call that reasonable … Continue reading

Posted in c-lazarus, c-rpi | Tagged | Leave a comment

Compiling the Latest Lazarus/Free Pascal for Raspberry Pi

I have long wanted a recent version of Lazarus for Raspberry Pi. I’ve looked at recompiling it, but the exact instructions have been hard to come by. Until last week! I accidently stumbled into Tweaking4All’s blog showing exactly how to … Continue reading

Posted in c-lazarus, c-rpi | Tagged | 4 Comments

ESP8266 UDP to/from Raspberry Pi running Lazaraus / Free Pascal

(click here to see index of all ESP8266 posts) This is a variation on the theme of the prior post, except in this case, the ESP8266 sends a UDP packet to the RPI which processes it using Lazarus / Free … Continue reading

Posted in c-esp8266, c-lazarus, c-rpi | Leave a comment

Reading Raspberry Pi GPIO Pins using Lazarus / Free Pascal

Way back when, I did a simple example of using Free Pascal to turn an LED on and off: Accessing Raspberry Pi GPIO using Lazarus/Free Pascal To date, that has been the most I’ve needed to do to the real … Continue reading

Posted in c-lazarus, c-rpi | Tagged | 3 Comments

Sunrise / Sunset Algorithm Implemented in Free Pascal / Lazarus

I needed to know sunrise / sunset times and wasn’t happy with any Pascal implementations I found. This code was implemented using the algorithm found at http://williams.best.vwh.net/sunrise_sunset_algorithm.htm This is a simple unit that can be easily implemented. There are no … Continue reading

Posted in c-lazarus, c-pcos | Tagged | Leave a comment

lazwiringpi linker problem: Error Rasperry Uses VFP register arguments

The lazwiringpi wrapper has worked fine for me in the past, found here (you must be logged in to see the download). http://forum.lazarus.freepascal.org/index.php/topic,17404.0.html This wrapper allows you to accessing the Raspberry Pi wiringPi library which is written in C. Granted, … Continue reading

Posted in c-lazarus, c-rpi | Tagged | 8 Comments

apt-get install fpc lazarus fails on Raspberry Pi

apt-get install fpc lazarus fails with “fpc : Depends: fpc-2.6.0 (= 2.6.0-9+rpi1) but it is not going to be installed” on Raspberry Pi Evidently, something has been changed recently in Raspbian makingĀ  it impossible to install FPC or Lazarus. From … Continue reading

Posted in c-lazarus, c-rpi | 3 Comments

Lazarus/Free Pascal Example Using SSL to Access POP Server (Linux/Raspberry Pi)

This covers Lazarus/POP/SSL in Linux/Raspberry Pi. Please go here if you are using Windows. As already mentioned: I need to write a command utility that scans a POP mailbox looking for a particular message so it can act. It will … Continue reading

Posted in c-lazarus, c-rpi | Tagged | 1 Comment