Skip to content

newdigate/teensy-libcurve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teensy-libcurve

teensy-libcurve teensy-libcurve-ubuntu-x86

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

curves - no antialiasing curves - antialiazing curves - heart

contents

download

  • download and uncompress .zip
  • or git clone https://github.com/newdigate/teensy-libcurve

teensy

dependencies

build

  • 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/")
    • update set(DEPSPATH "/Users/xxx/temp_dep")
      • point to dependencies folder
  • build
  > cd teensy-libcurve
  > mkdir cmake-build-teensy && cd cmake-build-teensy
  > cmake ../src -DCMAKE_BUILD_TYPE=Debug
  > make

install arduino library

  • 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

linux

dependencies

build

  • install dependencies
    • install each dependency as per instructions on repository README.md
  • build
  > cd teensy-libcurve
  > mkdir cmake-build-linux && cd cmake-build-linux
  > cmake ../src -DCMAKE_BUILD_TYPE=Debug -DOPT_BUILD_FOR_LINUX=ON
  > make

install

  > 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

Xiaolin Wu's line algorithm

About

nice curves for st7735_t3 library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published