![]() which should result in an output like this:. Once compiled and downloaded, I used minicom to check that the Pi was receiving the message. Initially I wrote a simple Picaxe program to send data to the Pi, which looked like this:. The Picaxe I'm using is an 08M2, but in principle you could use other models/variants. Dont forget you will need to run Gambas as root, which you can do from a terminal with:. I'm running Gambas v3.5.4 which can be installed straight from the Jessie repository. I am using a PiB2 running Raspbian Jessie, and found I needed the very latest versions/updates for wiringPi and Jessie. Much of the configuration stuff is described in my previous posts which you can link to from here:. So this post involves writing a simple Picaxe program, and then using wiringPi and Gambas on the Pi to communicate with the Picaxe. Using Gordon's wiringPi library makes it easy to open the gpio serial comms port on the Pi and write code with Gambas. I've been playing around with serial comms on my Pi/Picaxe dev rig. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |