nice curves for PaulStoffregen/ST7735_t3 and newdigate/teensy-st7735-linux-stubs
- work in progress
- antialiased lines and bezier curves (there is an option to turn antialiasing on / off)
- compile for teensy or linux
- disclaimer - this is not an efficient way of calculating a bezier curve.
- potential improvements
- tiny distortion when antialiasing and curve changes from steep to not steep or visa versa
- download and uncompress .zip
- or
git clone https://github.com/newdigate/teensy-libcurve
- clone the dependencies above to a chosen folder (in this case
~/temp_dep
)
> mkdir ~/temp_dep && cd ~/temp_dep
> git clone https://github.com/PaulStoffregen/cores
> git clone https://github.com/PaulStoffregen/ST7735_t3
> git clone https://github.com/PaulStoffregen/SPI
- open
src/CMakeLists.teensy.cmake.in
- update
set(COMPILERPATH "/Applications/ARM/bin/")
- point to installation bin folder of arm-eabi-none-gcc
- update
set(DEPSPATH "/Users/xxx/temp_dep")
- point to dependencies folder
- update
- build
> cd teensy-libcurve
> mkdir cmake-build-teensy && cd cmake-build-teensy
> cmake ../src -DCMAKE_BUILD_TYPE=Debug
> make
- create shortcut/symlink to
src
folder in your Arduino Libraries folder - there is a cmake target to creates a symlink to
~/Documents/Arduino/Libraries
(for macos)
> cd teensy-libcurve/src
> mkdir cmake-build-debug
> cd cmake-build-debug
> cmake -DCMAKE_BUILD_TYPE=Debug ..
> make installarduino
- install dependencies
- install each dependency as per instructions on repository
README.md
- install each dependency as per instructions on repository
- build
> cd teensy-libcurve
> mkdir cmake-build-linux && cd cmake-build-linux
> cmake ../src -DCMAKE_BUILD_TYPE=Debug -DOPT_BUILD_FOR_LINUX=ON
> make
> cd teensy-libcurve
> mkdir cmake-build-linux && cd cmake-build-linux
> cmake ../src -DCMAKE_BUILD_TYPE=Debug -DOPT_BUILD_FOR_LINUX=ON
> sudo make install