Open-Smartwatch / lib-open-smartwatch

Util classes and libraries for the Open-Smartwatch. Issues are tracked in the open-smartwatch-os repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📌 This repository is now archived...

...because we merged it into the upstream OS. There is no point in keeping it separate anymore, as the OS itself can be cross-compiled now. We decied to still keep this repository online to allow you to still build older versions of the OS, which may still refer to this repository.

Lib Open-Smartwatch

A library that handles maths, animations, conversions, and drawing.

Desktop Compiling Support

You can develop the 2D stuff on your desktop, see the Readme.md in examples/. This speeds up ui development by a lot.

FAQ

1. Can you explain what's the variables cx,cy,start,stop and lineradius ? `void Graphics2D::drawArc(int32_t cx, int32_t cy, float start, float stop, uint16_t steps, uint16_t radius, uint8_t lineRadius, uint16_t color)`
  • cx,cy : the center coordinates of the arc
  • start, stop : the start and stop angles (0 is on top of the circle)
  • steps : number of segments used to draw the arc (bigger is smoother but slower)
  • radius : width/2 of the arc
  • lineRadius : width of the line defined as a radius of a circle drawing the line
  • color : 16 bytes value of the color, check rgb565(uint8_t red, uint8_t green, uint8_t blue) to create colors or use consts like BLACK, WHITE, ...

About

Util classes and libraries for the Open-Smartwatch. Issues are tracked in the open-smartwatch-os repository.

License:GNU General Public License v3.0


Languages

Language:C++ 66.2%Language:C 33.8%