top posted update:
code to use a TFT screen with arduino (will do a separated post one day soon
- follow adafruit’s tutorial
To log data you can use picocom
picocom -b 9600 /dev/ttyACM0 > serial.txt
(C-a C-x to quit)
Today I tested Adafruit’s ultimate GPS logger.
As usual, it was well documented on Adafruit’s site.
I took the first example from the tutorial and this was what I got:
Install Adafruit ST7735 Lib and the Adafruit_GFX library for Arduino.
I had to upgrade ino to 0.3.6 in order to be able to build the example srcipts:
pip install --upgrade ino
I renamed the example files to .ino (’cause .cpp & pde gave errors)
Make sure you name the directories as in the documentation.
root@tortuguita:/usr/share/arduino/libraries# ls -lh Adafruit_* Adafruit_GFX: total 36K -rw-r--r-- 1 root root 13K Jul 5 23:51 Adafruit_GFX.cpp -rw-r--r-- 1 root root 2.8K Jul 5 23:51 Adafruit_GFX.h -rw-r--r-- 1 root root 8.0K Jul 5 23:51 glcdfont.c -rw-r--r-- 1 root root 1.4K Jul 5 23:51 license.txt -rw-r--r-- 1 root root 947 Jul 5 23:51 README.txt Adafruit_ST7735: total 40K -rwxr-xr-x 1 root root 22K Nov 8 19:44 Adafruit_ST7735.cpp -rwxr-xr-x 1 root root 4.7K Nov 8 19:44 Adafruit_ST7735.h drwxr-xr-x 10 root root 4.0K Nov 8 19:44 examples -rw-r--r-- 1 root root 1.1K Nov 8 19:44 README.txt
Then I built it using inotool.
The serial monitor from the Arduino IDE can be used, too.
to quit picocom C-a C-x !!
 Don’t have what I type echoed, which is frustrating
picocom --omap crlf --emap crcrlf,delbs --baud 9600 /dev/ttyACM0
vim +"set filetype=c"
you put this on your .bashrc or so
alias vimc='vim +"set filetype=c"'